/* ======================================
Login Partial Dropdown Styles
======================================= */

/* User Dropdown Button */
.user-dropdown-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    color: #212529;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .user-dropdown-btn:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
        border-color: #dee2e6;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .user-dropdown-btn:focus {
        background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
        border-color: #adb5bd;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    }

/* User Avatar in Button */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

    .user-avatar i {
        font-size: 0.9rem;
    }

/* User Name in Button */
.user-name {
    font-weight: 500;
    color: #212529;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chevron Icon */
.chevron-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem !important;
    transition: transform 0.3s ease;
}

.user-dropdown-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

/* Custom Dropdown Menu */
.custom-dropdown-menu {
    min-width: 280px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-top: 0.5rem;
}

/* Dropdown Header */
.dropdown-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px 8px 0 0;
}

/* User Avatar in Header */
.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

    .user-avatar-large i {
        font-size: 1.25rem;
    }

/* User Name in Header */
.user-name-header {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

/* User Role */
.user-role {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown Items */
.dropdown-item {
    padding: 0.65rem 1rem;
    color: #495057;
    transition: all 0.2s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

    .dropdown-item i {
        width: 1.2rem;
        text-align: center;
        font-size: 1rem;
    }

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }

    .dropdown-item:active {
        background-color: #e7f1ff;
        color: #0d6efd;
    }

/* Admin Item Special Style */
.admin-item {
    color: #000;
}

    .admin-item:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }

/* Logout Item Special Style */
.logout-item {
    color: #dc3545;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 0.65rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

    .logout-item i {
        width: 1.2rem;
        text-align: center;
        font-size: 1rem;
    }

    .logout-item:hover {
        background-color: #fff5f6;
        color: #dc3545;
    }

/* Dropdown Divider */
.dropdown-divider {
    border-color: #e9ecef;
}

/* Auth Buttons */
.auth-btn {
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary.auth-btn {
    border-color: #0d6efd;
    color: #0d6efd;
}

    .btn-outline-primary.auth-btn:hover {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }

.btn-primary.auth-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0858ca 100%);
    border: none;
}

    .btn-primary.auth-btn:hover {
        background: linear-gradient(135deg, #0858ca 0%, #064394 100%);
        box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
    }

/* Responsive */
@media (max-width: 768px) {
    .user-dropdown-btn {
        padding: 0.4rem 0.5rem !important;
    }

    .custom-dropdown-menu {
        min-width: 250px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

        .user-avatar i {
            font-size: 0.85rem;
        }
}
