/* Voice RAG Demo */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a2a3a 0%, #2a2a4a 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    color: #fbbf24;
}

.subtitle {
    color: #888;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-panel {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-mic {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-mic.listening {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-secondary {
    background: #333;
    color: #ccc;
}

.btn-secondary:hover {
    background: #555;
}

.status-panel {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.status-item {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 13px;
}

.workspace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel h3 {
    margin-top: 0;
    color: #fbbf24;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.kb-content {
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.query-content, .response-content {
    min-height: 100px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.response-content {
    color: #fbbf24;
    font-weight: 500;
}

.info-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.info-panel h3 {
    margin-top: 0;
    color: #fbbf24;
}

.info-panel ol {
    margin: 16px 0;
    padding-left: 20px;
}

.info-panel li {
    margin: 8px 0;
}

.hint {
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .workspace {
        grid-template-columns: 1fr;
    }
}