/* ========================================
   NAVBAR AUTH — Profile Dropdown Styles
   ======================================== */

/* Profile container */
.nav-profile {
    position: relative;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-family: inherit;
}

.nav-profile-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Avatar circle */
.nav-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.nav-username {
    font-size: 13px;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile-arrow {
    opacity: 0.7;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-profile-dropdown.show ~ .nav-profile-btn .nav-profile-arrow,
.nav-profile-btn[aria-expanded="true"] .nav-profile-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.2s ease;
    z-index: 9999;
    overflow: hidden;
}

.nav-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown header */
.nav-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
}

.nav-profile-avatar-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

.nav-profile-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.nav-profile-email {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.nav-profile-role {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Divider */
.nav-profile-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0;
}

/* Menu items */
.nav-profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.nav-profile-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-profile-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-profile-item:hover svg {
    opacity: 1;
}

/* Logout */
.nav-profile-logout {
    color: #ef4444;
}

.nav-profile-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.nav-profile-logout svg {
    stroke: #ef4444;
}

/* Sign In button (when not logged in) */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 8px;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-username {
        display: none;
    }

    .nav-profile-arrow {
        display: none;
    }

    .nav-profile-btn {
        padding: 4px;
        border-radius: 50%;
    }

    .nav-profile-dropdown {
        right: -20px;
        width: 240px;
    }

    .nav-login-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}
