/* IMPROVED: Floating status display styles */
.status-display.show {
    position: fixed !important;
    top: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    max-width: 500px !important;
    width: auto !important;
    margin: 0 20px !important;
    display: block !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.status-display .status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.status-display .status-content i {
    font-size: 1.1rem;
    min-width: 18px;
    text-align: center;
}

.status-thinking {
    border-left: 4px solid #ffd93d !important;
}

.status-thinking .status-content i {
    color: #ffd93d;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.status-success {
    border-left: 4px solid #51cf66 !important;
}

.status-success .status-content i {
    color: #51cf66;
}

.status-error {
    border-left: 4px solid #ff6b6b !important;
}

.status-error .status-content i {
    color: #ff6b6b;
}

.status-info {
    border-left: 4px solid #74c0fc !important;
}

.status-info .status-content i {
    color: #74c0fc;
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* IMPROVED: Auto-scroll behavior */
.messages {
    scroll-behavior: smooth;
}

/* Enhanced status display styling */
.status-display {
    background: rgba(22, 33, 62, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.status-display.show {
    animation: slideDown 0.3s ease-out;
}

/* Make thinking status more prominent */
.status-thinking {
    border-left: 4px solid #ffd93d !important;
    background: rgba(255, 217, 61, 0.1) !important;
}

.status-thinking .status-content i {
    color: #ffd93d;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* Improved visibility for all status types */
.status-success {
    border-left: 4px solid #51cf66 !important;
    background: rgba(81, 207, 102, 0.1) !important;
}

.status-error {
    border-left: 4px solid #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

.status-info {
    border-left: 4px solid #74c0fc !important;
    background: rgba(116, 192, 252, 0.1) !important;
}
