﻿/* ===== 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;
}
