/* User Menu Styles */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-menu-btn i.fa-user-circle {
    font-size: 20px;
}

.user-menu-btn i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-menu-btn:hover i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.user-menu-dropdown a:hover {
    background: #f3f4f6;
    border-left-color: #667eea;
    color: #667eea;
}

.user-menu-dropdown a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.logout-link {
    color: #ef4444 !important;
}

.logout-link:hover {
    background: #fee2e2 !important;
    border-left-color: #ef4444 !important;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Tablet & Mobile Responsive */

/* iPad and Tablet (under 1024px) */
@media (max-width: 1024px) {
    .user-menu-container {
        width: 100%;
    }
    
    .user-menu-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    .user-menu-btn span {
        display: block;
    }
    
    .user-menu-btn i.fa-chevron-down {
        display: block;
    }
    
    .user-menu-dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
    }
    
    .login-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    .login-btn span {
        display: inline;
    }
}

/* Mobile Specific (under 768px) */
@media (max-width: 768px) {
    .user-menu-btn {
        font-size: 14px;
    }
    
    .user-menu-dropdown a {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Close dropdown when clicking outside */
@media (min-width: 769px) {
    .user-menu-btn span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
