/**
 * User Info Styles
 * Styles for authenticated user display and logout button
 */

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: 15px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-avatar,
.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.user-avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 12px;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.user-email {
    font-size: 10px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.logout-btn:active {
    transform: scale(0.98);
}

.logout-btn svg {
    flex-shrink: 0;
}

/* Top bar adjustments */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .user-info {
        background: rgba(45, 55, 72, 0.95);
    }
    
    .user-name {
        color: #f7fafc;
    }
    
    .user-email {
        color: #a0aec0;
    }
    
    .logout-btn {
        border-color: #4a5568;
        color: #cbd5e0;
    }
    
    .logout-btn:hover {
        background: #2d3748;
        border-color: #718096;
        color: #f7fafc;
    }
    
    .user-avatar,
    .user-avatar-placeholder {
        border-color: #4a5568;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-info {
        gap: 8px;
        padding: 6px 12px;
    }
    
    .user-details {
        display: none;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .logout-btn {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .user-avatar,
    .user-avatar-placeholder {
        width: 32px;
        height: 32px;
    }
}

