.user-avatar-circle {
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.user-avatar-btn:hover .user-avatar-circle {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.25);
    border-color: rgba(52, 58, 64, 0.3);
}

.user-avatar-btn:focus {
    outline: none;
    box-shadow: none;
}

.user-avatar-btn:focus .user-avatar-circle {
    box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.25);
}

.dropdown-menu {
    animation: dropdownSlide 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top right;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.dropdown-item:active {
    background-color: #e9ecef;
}

.dropdown.show .user-avatar-circle {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.35);
}

.user-avatar-btn {
    background: none;
}

.user-avatar-circle-main {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.user-avatar-text {
    font-size: 15px;
    text-transform: uppercase;
}

.dropdown-menu-custom {
    min-width: 260px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 0;
}

.dropdown-menu-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #f3f4f6;
}

.user-avatar-circle-menu {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user-avatar-text-menu {
    font-size: 14px;
    text-transform: uppercase;
}

/* User info styling */
.dropdown-user-info {
    min-width: 0;
}

.dropdown-username {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.dropdown-email {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-admin {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-user {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Dropdown menu items styling */
.dropdown-menu-item {
    padding: 0.5rem 0;
}

.dropdown-link {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-icon {
    font-size: 1.1rem;
    color: #6c757d;
}

.dropdown-link-logout {
    color: #dc3545;
}

.dropdown-link-logout .dropdown-icon {
    color: #dc3545;
}

.dropdown-link-text {
    font-weight: 500;
}

@media (max-width: 768px) {
    .user-avatar-circle {
        width: 32px !important;
        height: 32px !important;
    }

    .user-avatar-circle span {
        font-size: 12px !important;
    }

    .dropdown-menu-custom {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        transform: translate(0, 5px) !important;
        min-width: 240px !important;
        max-width: 90vw;
        margin-top: 5px !important;
        width: auto !important;
    }

    .dropdown {
        position: relative;
    }
}