* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-header { background: #fff; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #e5e7eb; }
.top-nav { padding: 0; }
.nav-content { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 2rem; }
.logo-section { flex-shrink: 0; }
.logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; transition: transform 0.2s ease; }
.logo-link:hover { transform: scale(1.02); }
.logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, #1e3c72, #2a5298); color: white; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.5rem; box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.4rem; font-weight: 700; color: #1e3c72; line-height: 1.2; }
.logo-subtitle { font-size: 0.8rem; color: #6b7280; font-weight: 500; }
.main-navigation { flex: 1; display: flex; justify-content: right; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.5rem; align-items: center; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; text-decoration: none; color: #4b5563; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-weight: 500; position: relative; white-space: nowrap; }
.nav-link:hover { color: #1e3c72; background: linear-gradient(135deg, #f8fafc, #e2e8f0); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.nav-link.active { color: #fff; background: linear-gradient(135deg, #d0d4dc, #aeaeae); }
.nav-icon { font-size: 1.1rem; opacity: 0.9; }
.nav-text { font-size: 0.95rem; }
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-arrow { font-size: 0.7rem; margin-left: 0.25rem; transition: transform 0.3s ease; }
.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); border: 1px solid #e5e7eb; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; list-style: none; margin: 0; padding: 0.5rem 0; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { display: block; padding: 0.75rem 1.25rem; color: #4b5563; text-decoration: none; transition: all 0.2s ease; font-weight: 500; }
.dropdown-link:hover { background: #f8fafc; color: #1e3c72; padding-left: 1.5rem; }
.user-section { flex-shrink: 0; position: relative; }
.user-dropdown { position: relative; }
.user-toggle { display: flex; align-items: center; gap: 0.75rem; background: transparent; border: 2px solid #e5e7eb; border-radius: 50px; padding: 0.5rem 1rem; cursor: pointer; transition: all 0.3s ease; min-width: 200px; }
.user-toggle:hover { border-color: #1e3c72; background: #f8fafc; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.user-avatar { width: 35px; height: 35px; background: linear-gradient(135deg, #1e3c72, #2a5298); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-initials { color: white; font-weight: 600; font-size: 0.9rem; }
.user-details { flex: 1; text-align: left; }
.user-name { display: block; font-weight: 600; color: #1f2937; font-size: 0.9rem; line-height: 1.2; }
.user-role { display: block; font-size: 0.75rem; color: #6b7280; font-weight: 500; }
.user-arrow { font-size: 0.7rem; color: #9ca3af; transition: transform 0.3s ease; }
.user-dropdown.active .user-arrow { transform: rotate(180deg); }
.user-menu { position: absolute; top: calc(100% + 0.75rem); right: 0; background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); border: 1px solid #e5e7eb; min-width: 280px; opacity: 0; visibility: hidden; transform: translateY(-15px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; }
.user-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-header { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid #f3f4f6; }
.user-menu-avatar { width: 45px; height: 45px; background: linear-gradient(135deg, #1e3c72, #2a5298); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-menu-info { flex: 1; }
.user-menu-name { font-weight: 600; color: #1f2937; font-size: 1rem; margin-bottom: 0.25rem; }
.user-menu-role { font-size: 0.8rem; color: #6b7280; font-weight: 500; }
.user-menu-divider { height: 1px; background: #f3f4f6; }
.user-menu-item { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; color: #4b5563; text-decoration: none; transition: all 0.2s ease; font-weight: 500; }
.user-menu-item:hover { background: #f8fafc; color: #1e3c72; }
.logout-item:hover { background: #fef2f2; color: #dc2626; }
.menu-icon { font-size: 1rem; }
.mobile-toggle { display: none; flex-direction: column; gap: 4px; background: transparent; border: none; cursor: pointer; padding: 0.5rem; border-radius: 8px; transition: background 0.2s ease; z-index: 1001; }
.mobile-toggle:hover { background: #f3f4f6; }
.hamburger-line { width: 24px; height: 3px; background: #4b5563; border-radius: 2px; transition: all 0.3s ease; }
.mobile-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(2px); }
.mobile-menu-overlay.show { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 320px; max-width: 90vw; height: 100vh; background: white; z-index: 999; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1); }
.mobile-menu.show { right: 0; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.mobile-logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: #1e3c72; }
.mobile-close { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; padding: 0.25rem; }
.mobile-menu-content { padding: 1.5rem; }
.mobile-user-info { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #f8fafc; border-radius: 12px; margin-bottom: 1.5rem; }
.mobile-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #1e3c72, #2a5298); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 0.9rem; }
.mobile-user-name { font-weight: 600; color: #1f2937; margin-bottom: 0.25rem; }
.mobile-user-role { font-size: 0.8rem; color: #6b7280; }
.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; color: #4b5563; text-decoration: none; border-radius: 10px; transition: all 0.2s ease; font-weight: 500; }
.mobile-nav-item:hover { background: #f8fafc; color: #1e3c72; }
.mobile-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.mobile-menu-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.mobile-logout { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; color: #dc2626; text-decoration: none; border-radius: 10px; transition: all 0.2s ease; font-weight: 500; }
.mobile-logout:hover { background: #fef2f2; }
@media (max-width: 1024px) { .nav-text { display: none; } .nav-link { padding: 0.75rem; } .user-details { display: none; } .user-toggle { min-width: auto; padding: 0.5rem; } }
@media (max-width: 768px) { .main-navigation { display: none; } .user-section { display: none; } .mobile-toggle { display: flex; } .nav-content { gap: 1rem; } .logo-text { display: none; } }
@media (max-width: 480px) { .mobile-menu { width: 100%; } .nav-content { padding: 0.75rem 0; } .logo-icon { width: 40px; height: 40px; font-size: 1.3rem; } }
.login-page { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { width: 100%; max-width: 450px; padding: 1rem; }
.login-card { background: white; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); padding: 1rem; text-align: center; }
.login-header h1 { color: #333; margin-bottom: 0.5rem; font-size: 2rem; }
.login-header p { color: #666; margin-bottom: 2rem; }
.login-form { text-align: left; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; font-size: 0.95rem; font-weight: 500; text-align: center; text-decoration: none; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; line-height: 1; }
.btn-primary { background: linear-gradient(135deg, #007bff, #0056b3); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, #0056b3, #004085); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,123,255,0.3); }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #545b62; }
.btn-success { background: linear-gradient(135deg, #28a745, #1e7e34); color: white; }
.btn-success:hover { background: linear-gradient(135deg, #1e7e34, #155724); }
.btn-danger { background: linear-gradient(135deg, #dc3545, #c82333); color: white; }
.btn-danger:hover { background: linear-gradient(135deg, #c82333, #bd2130); }
.btn-info { background: linear-gradient(135deg, #17a2b8, #138496); color: white; }
.btn-info:hover { background: linear-gradient(135deg, #138496, #117a8b); }
.btn-outline { background: #7a7a7a78; color: white; }
.btn-outline:hover { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; display: block; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #333; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 2px solid #e9ecef; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.form-container { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.form-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; flex-wrap: wrap; }
.form-help { color: #6c757d; font-size: 0.85rem; margin-top: 0.25rem; }
.alert { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-radius: 8px; font-weight: 500; }
.alert-info { background-color: #d1ecf1; border-left: 4px solid #17a2b8; color: #0c5460; }
.alert-error { background-color: #f8d7da; border-left: 4px solid #dc3545; color: #721c24; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0; padding-bottom: 1rem; border-bottom: 2px solid #e9ecef; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 2.5rem; color: #333; font-weight: 700; }
.subtitle { color: #6c757d; font-size: 1.1rem; margin-top: 0.5rem; }
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.section { background: white; margin: 2rem 0; padding: 2rem; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.section h2 { color: #333; font-size: 1.8rem; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.stat-card { background: white; padding: 1rem; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 1.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.stat-icon { font-size: 2rem; opacity: 0.8; }
.stat-content h3 { font-size: 1.5rem; font-weight: 700; color: #007bff; margin-bottom: 0.25rem; }
.stat-content p { color: #666; font-weight: 500; }
.table-container { overflow-x: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.data-table { width: 100%; border-collapse: collapse; background: white; }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #e9ecef; }
.data-table th { background: linear-gradient(135deg, #f8f9fa, #e9ecef); font-weight: 600; color: #333; position: sticky; top: 0; z-index: 10; }
.data-table tr:hover { background-color: #f8f9fa; }
.data-table .actions { white-space: nowrap; }
.data-table .actions .btn { margin-right: 0.25rem; }
.status-success { color: #28a745; font-weight: 600; }
.status-warning { color: #ffc107; font-weight: 600; }
.status-danger { color: #dc3545; font-weight: 600; }
.amount-remaining { color: #dc3545; font-weight: 600; }
.insurance-info { background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 1.5rem; border-radius: 8px; border-left: 4px solid #007bff; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.info-item { padding: 0.5rem 0; }
.info-item strong { color: #333; margin-right: 0.5rem; }
.quick-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; margin: 2rem 0; }
.chart-container { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.chart-header { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e9ecef; }
.chart-header h3 { color: #333; font-size: 1.2rem; font-weight: 600; }
.filters { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filters select { padding: 0.5rem; border: 1px solid #ddd; border-radius: 6px; background: white; }
.notes-cell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.security-notice { text-align: center; margin-top: 1.5rem; padding: 1rem; background-color: #fff3cd; border: 1px solid #ffeaa7; border-radius: 6px; color: #856404; font-size: 0.9rem; }
.login-footer { margin-top: 2rem; }
@media (max-width: 768px) { .container { padding: 0 15px; } .header-content { flex-direction: column; text-align: center; } .main-nav ul { justify-content: center; } .page-header { flex-direction: column; text-align: center; } .page-header h1 { font-size: 2rem; } .stats-grid { grid-template-columns: 1fr; } .stat-card { flex-direction: column; text-align: center; } .form-row { grid-template-columns: 1fr; } .form-actions { justify-content: center; } .quick-actions { justify-content: center; } .charts-grid { grid-template-columns: 1fr; } .data-table { font-size: 0.9rem; } .data-table th, .data-table td { padding: 0.5rem; } .login-card { padding: 2rem; } }
@media (max-width: 480px) { .page-header h1 { font-size: 1.5rem; } .stat-content h3 { font-size: 2rem; } .data-table { font-size: 0.8rem; } .btn { padding: 0.5rem 1rem; font-size: 0.9rem; } .login-card { padding: 1.5rem; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.section { animation: fadeIn 0.6s ease-out; }
.stat-card { animation: fadeIn 0.6s ease-out; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
.participant-dashboard { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
.participant-header { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); color: white; padding: 2rem 0; text-align: center; }
.participant-content { padding: 2rem 0; }
.payment-history { background: white; border-radius: 12px; padding: 2rem; margin: 1rem 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.setting-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.setting-card h3 { margin-bottom: 1rem; color: #333; font-size: 1.3rem; }
.security-status { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.security-status.safe { background-color: #d4edda; border-left: 4px solid #28a745; color: #155724; }
.security-status.warning { background-color: #fff3cd; border-left: 4px solid #ffc107; color: #856404; }
.security-status.danger { background-color: #f8d7da; border-left: 4px solid #dc3545; color: #721c24; }
@media print { .main-header, .page-actions, .btn, .actions { display: none; } .container { max-width: none; padding: 0; } .section { box-shadow: none; margin: 1rem 0; } .data-table { font-size: 0.8rem; } }