Spaces:
Runtime error
Runtime error
| /* Root variables for consistent theming */ | |
| :root { | |
| --primary-color: #007bff; | |
| --secondary-color: #6c757d; | |
| --success-color: #28a745; | |
| --danger-color: #dc3545; | |
| --warning-color: #ffc107; | |
| --info-color: #17a2b8; | |
| --light-color: #f8f9fa; | |
| --dark-color: #343a40; | |
| --border-radius: 12px; | |
| --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | |
| --box-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15); | |
| --gradient-start: #4facfe; | |
| --gradient-end: #00f2fe; | |
| } | |
| /* Reset and base styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| line-height: 1.6; | |
| color: var(--dark-color); | |
| background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); | |
| min-height: 100vh; | |
| position: relative; | |
| overflow-x: hidden; | |
| } | |
| /* Background with subtle healthcare icons */ | |
| body::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); | |
| opacity: 0.1; | |
| z-index: -1; | |
| } | |
| /* Add subtle healthcare icons as background elements */ | |
| body::after { | |
| content: '\f0f9 \f21e \f0fa'; /* Font Awesome icons: ambulance, heartbeat, medical kit */ | |
| font-family: 'Font Awesome 5 Free'; | |
| font-weight: 900; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| font-size: 100px; | |
| color: rgba(255, 255, 255, 0.1); | |
| display: flex; | |
| justify-content: space-around; | |
| align-items: center; | |
| pointer-events: none; | |
| z-index: -1; | |
| } | |
| /* Container adjustments */ | |
| .container-fluid { | |
| padding: 0 15px; | |
| margin: 2rem auto; | |
| } | |
| /* Enhanced card styling */ | |
| .card { | |
| border: none; | |
| border-radius: var(--border-radius); | |
| box-shadow: var(--box-shadow); | |
| background: rgba(255, 255, 255, 0.95); | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: var(--box-shadow-lg); | |
| } | |
| .card-body { | |
| padding: 1.5rem; | |
| } | |
| /* Form enhancements */ | |
| .form-control, .form-select { | |
| border-radius: 8px; | |
| border: 1px solid #e0e0e0; | |
| padding: 0.75rem; | |
| transition: border-color 0.2s ease, box-shadow 0.2s ease; | |
| background: #fff; | |
| box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); | |
| } | |
| .form-control:focus, .form-select:focus { | |
| border-color: var(--primary-color); | |
| box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); | |
| outline: none; | |
| } | |
| /* Button enhancements */ | |
| .btn { | |
| border-radius: 8px; | |
| font-weight: 600; | |
| padding: 0.75rem 1.5rem; | |
| transition: all 0.3s ease; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .btn-primary { | |
| background: var(--primary-color); | |
| border: none; | |
| } | |
| .btn-success { | |
| background: var(--success-color); | |
| border: none; | |
| } | |
| .btn-danger { | |
| background: var(--danger-color); | |
| border: none; | |
| } | |
| .btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); | |
| } | |
| .btn::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); | |
| transition: left 0.5s; | |
| } | |
| .btn:hover::before { | |
| left: 100%; | |
| } | |
| /* Navbar styling */ | |
| .navbar { | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: var(--border-radius); | |
| box-shadow: var(--box-shadow); | |
| backdrop-filter: blur(10px); | |
| } | |
| .navbar-brand { | |
| font-weight: 700; | |
| color: var(--primary-color) ; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .navbar-brand i { | |
| margin-right: 8px; | |
| } | |
| .navbar-text { | |
| font-size: 0.9rem; | |
| } | |
| /* Main content area */ | |
| main { | |
| animation: fadeIn 0.5s ease-in-out; | |
| } | |
| /* Footer styling */ | |
| footer { | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: var(--border-radius); | |
| box-shadow: var(--box-shadow); | |
| padding: 1rem 0; | |
| margin-top: 3rem; | |
| } | |
| footer small { | |
| color: #6c757d; | |
| } | |
| /* Toast styling */ | |
| .toast-container { | |
| z-index: 1050; | |
| } | |
| .toast { | |
| border-radius: 8px; | |
| box-shadow: var(--box-shadow); | |
| } | |
| /* Table styling */ | |
| .table-responsive { | |
| border-radius: var(--border-radius); | |
| box-shadow: var(--box-shadow); | |
| } | |
| .table th { | |
| background: #f8f9fa; | |
| font-weight: 600; | |
| border-top: none; | |
| } | |
| .table td, .table th { | |
| padding: 1rem; | |
| } | |
| /* Custom dashboard sections */ | |
| #loginSection, #signupSection, #doctorDashboard, #patientDashboard, #pharmacyDashboard { | |
| max-width: 100%; | |
| margin: 0 auto; | |
| animation: slideIn 0.5s ease-out; | |
| } | |
| h2 { | |
| color: var(--primary-color); | |
| font-weight: 700; | |
| margin-bottom: 1.5rem; | |
| position: relative; | |
| } | |
| h2::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -8px; | |
| left: 0; | |
| width: 50px; | |
| height: 4px; | |
| background: var(--primary-color); | |
| border-radius: 2px; | |
| } | |
| h3.card-title { | |
| color: #343a40; | |
| font-weight: 600; | |
| } | |
| /* Form labels */ | |
| .form-label { | |
| font-weight: 500; | |
| color: #495057; | |
| } | |
| /* Responsive adjustments */ | |
| @media (max-width: 575.98px) { | |
| .container-fluid { | |
| padding: 0 10px; | |
| margin: 1rem auto; | |
| } | |
| h1, .h1 { font-size: 1.75rem; } | |
| h2, .h2 { font-size: 1.5rem; } | |
| h3, .h3 { font-size: 1.25rem; } | |
| h4, .h4 { font-size: 1.1rem; } | |
| .card-body { | |
| padding: 1rem; | |
| } | |
| .form-control, .form-select { | |
| font-size: 16px; | |
| padding: 0.65rem; | |
| min-height: 44px; | |
| } | |
| .btn { | |
| font-size: 0.9rem; | |
| padding: 0.65rem 1rem; | |
| min-height: 44px; | |
| } | |
| .navbar { | |
| padding: 0.5rem 1rem; | |
| } | |
| .navbar-brand { | |
| font-size: 1.1rem; | |
| } | |
| .navbar-text { | |
| font-size: 0.8rem; | |
| } | |
| footer { | |
| margin-top: 2rem; | |
| padding: 0.75rem 0; | |
| } | |
| #stockForm { | |
| padding: 1rem; | |
| margin: 0; | |
| } | |
| } | |
| @media (min-width: 576px) and (max-width: 767.98px) { | |
| .container-fluid { | |
| max-width: 540px; | |
| margin: 2rem auto; | |
| } | |
| .card-body { | |
| padding: 1.25rem; | |
| } | |
| } | |
| @media (min-width: 768px) and (max-width: 991.98px) { | |
| .container-fluid { | |
| max-width: 720px; | |
| margin: 3rem auto; | |
| } | |
| .card-body { | |
| padding: 1.5rem; | |
| } | |
| } | |
| @media (min-width: 992px) { | |
| .container-fluid { | |
| max-width: 960px; | |
| margin: 4rem auto; | |
| } | |
| } | |
| @media (min-width: 1200px) { | |
| .container-fluid { | |
| max-width: 1140px; | |
| margin: 5rem auto; | |
| } | |
| } | |
| /* Animations */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(20px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @keyframes slideIn { | |
| from { opacity: 0; transform: translateX(-20px); } | |
| to { opacity: 1; transform: translateX(0); } | |
| } | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--primary-color); | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #0056b3; | |
| } | |
| /* Accessibility improvements */ | |
| :focus { | |
| outline: 2px solid var(--primary-color); | |
| outline-offset: 2px; | |
| } | |
| /* Dark mode support */ | |
| @media (prefers-color-scheme: dark) { | |
| body { | |
| background: linear-gradient(135deg, #1e3a8a, #075985); | |
| } | |
| .card, .navbar, footer { | |
| background: rgba(30, 41, 59, 0.95); | |
| color: #e2e8f0; | |
| } | |
| .form-control, .form-select { | |
| background: #2d3748; | |
| color: #e2e8f0; | |
| border-color: #4a5568; | |
| } | |
| h2, h3.card-title { | |
| color: #e2e8f0; | |
| } | |
| h2::after { | |
| background: #e2e8f0; | |
| } | |
| .table th { | |
| background: #2d3748; | |
| color: #e2e8f0; | |
| } | |
| .form-label { | |
| color: #e2e8f0; | |
| } | |
| } | |