.user-dropdown {
    min-width: 260px;
    padding: 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-top: 0;
    z-index: 9999 !important;
    position: relative;
}

@media (max-width: 768px) {
    .user-dropdown {
        min-width: 240px;
        max-width: calc(100vw - 40px);
        width: 280px;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        z-index: 9999 !important;
        position: fixed !important;
        top: 60px !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .navbar-icons .user-dropdown-wrapper .dropdown-menu {
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        z-index: 9999 !important;
        position: fixed !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        width: 280px;
        max-width: calc(100vw - 40px);
    }
    
    .user-dropdown .dropdown-header {
        padding: 12px;
    }
    
    .user-dropdown .dropdown-header h6 {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .user-dropdown .dropdown-header small {
        font-size: 11px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .user-dropdown .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .user-dropdown .dropdown-header img,
    .user-dropdown .dropdown-header .avatar-placeholder {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }
    
    .user-dropdown .dropdown-header {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .user-dropdown .dropdown-header > div {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        min-width: 220px;
        max-width: calc(100vw - 30px);
        width: 260px;
        right: 15px !important;
    }
    
    .navbar-icons .user-dropdown-wrapper .dropdown-menu {
        width: 260px;
        max-width: calc(100vw - 30px);
        right: 15px !important;
    }
}

.navbar-icons .user-dropdown-wrapper:hover .dropdown-menu,
.navbar-icons .user-dropdown-wrapper .dropdown-menu:hover,
.navbar-icons .user-dropdown-wrapper.show .dropdown-menu,
.navbar-icons .user-dropdown-wrapper .dropdown-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.navbar-icons .user-dropdown-wrapper {
    position: relative;
    z-index: 9999;
}

.navbar-icons .user-dropdown-wrapper .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-top: 0;
    z-index: 9999 !important;
}

@media (max-width: 768px) {
    .navbar-icons .user-dropdown-wrapper .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
    }
}

.navbar-icons .user-dropdown-wrapper:hover .dropdown-menu,
.navbar-icons .user-dropdown-wrapper.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.user-dropdown .dropdown-header {
    padding: 16px;
    background: #fff;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
}

.user-dropdown .dropdown-header h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
}

.user-dropdown .dropdown-header small {
    color: #666;
    font-size: 12px;
}

.user-dropdown .dropdown-header .badge {
    font-size: 10px;
    padding: 3px 8px;
    margin-top: 4px;
}

.user-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
    border: none;
}

.user-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.user-dropdown .dropdown-item.text-danger {
    color: #dc3545;
}

.user-dropdown .dropdown-item.text-danger i {
    color: #dc3545;
}

.user-dropdown .dropdown-divider {
    margin: 4px 0;
    border-top: 1px solid #e0e0e0;
}

.user-dropdown button.dropdown-item {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.navbar-icons .dropdown-toggle::after {
    display: none;
}

.navbar-icons .nav-icon img {
    border: 2px solid #ddd;
    transition: border-color 0.2s ease;
}

.navbar-icons .nav-icon .dropdown-toggle:hover img {
    border-color: #667eea;
}

.navbar-icons .nav-icon .nav-link {
    padding: 8px 12px;
}

.ftco_navbar.bg-white .navbar-icons .nav-icon .fa-user-circle {
    font-size: 24px;
    color: #333;
}

.ftco_navbar.bg-white .navbar-icons .nav-icon .fa-caret-down {
    color: #333;
    transition: transform 0.2s ease;
}

.ftco_navbar.navbar-transparent .navbar-icons .nav-icon .fa-user-circle {
    font-size: 24px;
    color: #fff;
}

.ftco_navbar.navbar-transparent .navbar-icons .nav-icon .fa-caret-down {
    color: #fff;
    transition: transform 0.2s ease;
}

.navbar-icons .nav-icon .user-dropdown-wrapper:hover .fa-caret-down,
.navbar-icons .nav-icon .user-dropdown-wrapper.show .fa-caret-down {
    transform: rotate(180deg);
}

