/* User Menu Dropdown Styles */
.user-menu-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.user-menu-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
}

.user-menu-trigger .dropdown-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.user-menu-trigger .dropdown-icon.rotated {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    z-index: 1000;
    margin-top: 12px;
    overflow: hidden;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* User info header in dropdown */
.user-info-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 24px 20px;
    text-align: left;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.user-email {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* Dropdown content wrapper */
.dropdown-content {
    padding: 0;
}

/* Updated dropdown item styles */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    border: none;
    outline: none;
    background: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.dropdown-item:focus {
    outline: none;
    text-decoration: none;
}

.dropdown-item:visited {
    color: #333;
    text-decoration: none;
}

.dropdown-item .dropdown-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}

.dropdown-item .dropdown-text {
    flex: 1;
}

.dropdown-item .dropdown-arrow {
    font-size: 18px;
    color: #ccc;
    font-weight: 300;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0;
}

.logout-btn {
    color: #dc3545 !important;
    font-weight: 400;
}

.logout-btn:hover {
    background-color: #fff5f5;
    color: #dc3545 !important;
}

.logout-btn .logout-icon {
    filter: hue-rotate(0deg) saturate(1.5) brightness(0.8);
}

.logout-btn .dropdown-arrow {
    display: none;
}

/* User Info Button Styles */
.btn-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0066CC;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: default;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-user-info .icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -20px;
        min-width: 280px;
    }
    
    .btn-user-info {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 150px;
    }
    
    .user-menu-trigger {
        font-size: 12px;
        padding: 6px 8px;
    }
}