/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.brand i {
    color: var(--primary-light);
    font-size: 1.8rem;
}

.brand:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid #f1f5f9;
        text-align: center;
    }

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

    .nav-auth {
        display: none;
    }
}

/* ===== PROFILE DROPDOWN ===== */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(20,184,166,0.25);
    border-radius: 50px;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.profile-btn:hover {
    border-color: rgba(20,184,166,0.6);
    box-shadow: 0 4px 16px rgba(15,118,110,0.15);
    transform: translateY(-1px);
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.profile-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-role {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.profile-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
}
.profile-chevron.rotated {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
    padding: 8px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.profile-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 12px;
}
.profile-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-menu-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.profile-menu-role {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.profile-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease;
}
.profile-menu-item i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.15s;
}
.profile-menu-item:hover {
    background: #f0fdfa;
    color: #0f766e;
}
.profile-menu-item:hover i { color: #14b8a6; }

.profile-menu-logout { color: #ef4444; }
.profile-menu-logout i { color: #fca5a5; }
.profile-menu-logout:hover { background: #fef2f2; color: #dc2626; }
.profile-menu-logout:hover i { color: #ef4444; }