
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7fafc;
    color: #00002A;
    min-height: 100vh;
}

/* Top Navigation Bar */
.top-nav {
    background: #FFFFFF;
    border-bottom: 2px solid #007F32;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand img {
    height: 35px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #00002A;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: #f0fdf4;
    color: #007F32;
}

.nav-link.active {
    background: #007F32;
    color: #FFFFFF;
}

.nav-link i {
    font-size: 1.1rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f7fafc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-trigger:hover {
    border-color: #007F32;
    background: #f0fdf4;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007F32, #00a651);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: #00002A;
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.75rem;
    color: #4a5568;
}

.dropdown-icon {
    color: #4a5568;
    transition: transform 0.3s ease;
}

.user-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #FFFFFF;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: #00002A;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f7fafc;
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-item:hover {
    background: #f0fdf4;
    color: #007F32;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
    color: #ff5252;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #007F32;
    cursor: pointer;
    padding: 8px;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Dashboard Specific Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-title {
    flex: 1;
}

.dashboard-title h1 {
    color: #007F32;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-title p {
    color: #4a5568;
    font-size: 1.1rem;
}

.assessment-selector {
    min-width: 300px;
}

.assessment-selector label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
}

.assessment-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #00002A;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assessment-select:focus {
    outline: none;
    border-color: #007F32;
    box-shadow: 0 0 0 3px rgba(0, 127, 50, 0.1);
}

/* Tabs */
.tabs-container {
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    background: #f7fafc;
}

.tab-button {
    flex: 1;
    padding: 18px 30px;
    background: none;
    border: none;
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: #f0fdf4;
    color: #007F32;
}

.tab-button.active {
    color: #007F32;
    background: #FFFFFF;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #007F32;
}

.tab-button.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-button .lock-icon {
    margin-left: 8px;
    font-size: 0.9rem;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid rgba(0, 166, 81, 0.3);
    border-top: 4px solid #007F32;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 15px;
    border: 2px dashed #e2e8f0;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #007F32;
    margin-bottom: 15px;
}

.empty-state p {
    color: #4a5568;
    margin-bottom: 25px;
}

.btn-primary {
    background: #007F32;
    color: #FFFFFF;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #006428;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 127, 50, 0.3);
}

/* Upgrade Banner for Locked Tab */
.upgrade-banner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #3b82f6;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.upgrade-banner h3 {
    color: #1e40af;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.upgrade-banner p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn-upgrade {
    background: #007F32;
    color: #FFFFFF;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 127, 50, 0.3);
}

/* Session Update Notification */
.session-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #007F32;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.session-notification.success {
    background: #28a745;
}

.session-notification.error {
    background: #dc3545;
}

.session-notification i {
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 2px solid #007F32;
    }

    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 8px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .user-dropdown {
        order: -1;
    }
}

@media (max-width: 768px) {
    .user-info {
        display: none;
    }

    .user-trigger {
        padding: 8px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .assessment-selector {
        min-width: 100%;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-button {
        border-bottom: 1px solid #e2e8f0;
    }

    .tab-button.active::after {
        bottom: 0;
        height: 100%;
        width: 4px;
        right: auto;
    }
}