﻿html { scrollbar-width: thin; scrollbar-color: #1e293b #0f172a; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0; scrollbar-width: thin; scrollbar-color: #1e293b #0f172a; }

/* Custom scrollbar - WebKit */
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, *::-webkit-scrollbar-track { background: #0f172a; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, *::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; border: 2px solid #0f172a; }
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:hover { background: #2d3f58; }
html::-webkit-scrollbar-corner, body::-webkit-scrollbar-corner, *::-webkit-scrollbar-corner { background: #0f172a; }
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.video-wrap { width: 640px; height: 360px; background: #111; display:flex; align-items:center; justify-content:center; color:#999; }
.controls { margin: 1rem 0; display:flex; flex-wrap: wrap; gap: .75rem; align-items:center; }
.controls input, .controls select { padding: .35rem .5rem; }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.log { background: #f7f7f7; padding: .75rem; border-radius: .5rem; min-height: 120px; white-space: pre-wrap; }
/* ====== Avatar Interview Buttons ====== */
.answer-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fdfdfd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.answer-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.answer-btn {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 2px solid #0078d7;
    background: #f8f9fa;
    color: #0078d7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

    .answer-btn:hover {
        background: #0078d7;
        color: #fff;
        transform: scale(1.05);
    }

    .answer-btn.a {
        border-color: #4caf50;
        color: #4caf50;
    }

        .answer-btn.a:hover {
            background: #4caf50;
            color: white;
        }

    .answer-btn.b {
        border-color: #ff9800;
        color: #ff9800;
    }

        .answer-btn.b:hover {
            background: #ff9800;
            color: white;
        }

    .answer-btn.c {
        border-color: #f44336;
        color: #f44336;
    }

        .answer-btn.c:hover {
            background: #f44336;
            color: white;
        }


/* ===== POLISHED DEV CONTROLS - PROFESSIONAL DEMO LOOK ===== */

/* Controls Section - Modern Card */
.controls-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group select,
.control-group input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    min-width: 160px;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Button Group - Refined */
.button-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Primary Button - Gradient */
.btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Secondary Button - Clean */
.btn-secondary {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    background: white;
    color: #475569;
}

.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Data Section - Card Style */
.data-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.data-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 2px;
}

.data-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-display > div {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    border-left: 3px solid #e2e8f0;
    transition: all 0.2s ease;
}

.data-display > div:hover {
    background: #f1f5f9;
}

.data-display > div strong {
    color: #1e293b;
    font-weight: 600;
}

/* Log Section - Clean */
.log-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.log-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

.conversation-log {
    max-height: 300px;
    overflow-y: auto;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 12px;
    border: 1px solid #e2e8f0;
}

.log-empty {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 30px 20px;
}

.log-entry {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

/* Status Indicators - Refined */
.status-info {
    margin-bottom: 16px;
    font-size: 13px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.listening-indicator {
    color: #10b981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    animation: pulse-green 1.5s infinite;
}

.speaking-indicator {
    color: #6366f1;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    animation: pulse-blue 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

/* Test VIN Section - Accent */
.btn-test {
    padding: 10px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-test:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-test-secondary {
    padding: 10px 18px;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-test-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* ─── Global horizontal overflow prevention (Sprint M5 QA fix) ─── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}