/* User Account Dropdown Styles */
.user-account-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-wrapper {
    position: relative;
}

.user-icon-trigger,
.user-login-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-icon-trigger:hover,
.user-login-simple:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
}

.user-icon-trigger i,
.user-login-simple i {
    font-size: 18px;
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-buttons-wrapper .user-account-link a,
    .header-buttons-wrapper .user-logout-link a,
    .header-buttons-wrapper .user-login-link a {
        padding: 6px 10px;
        font-size: 12px;
        margin-right: 5px;
    }
    
    .header-buttons-wrapper .user-account-link a i,
    .header-buttons-wrapper .user-logout-link a i,
    .header-buttons-wrapper .user-login-link a i {
        margin-right: 3px;
        font-size: 10px;
    }
}

/* Hide text on very small screens, show only icons */
@media (max-width: 480px) {
    .header-buttons-wrapper .user-account-link a span,
    .header-buttons-wrapper .user-logout-link a span,
    .header-buttons-wrapper .user-login-link a span {
        display: none;
    }
    
    .header-buttons-wrapper .user-account-link a,
    .header-buttons-wrapper .user-logout-link a,
    .header-buttons-wrapper .user-login-link a {
        padding: 8px;
        min-width: 35px;
        justify-content: center;
    }
    
    .header-buttons-wrapper .user-account-link a i,
    .header-buttons-wrapper .user-logout-link a i,
    .header-buttons-wrapper .user-login-link a i {
        margin-right: 0;
        font-size: 14px;
    }
}