
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

h1 {
    margin-bottom: 2rem;
    color: #4a5568;
    font-size: 2.5rem;
    background-clip: text;
}

.status-panel {
    background: #f7fafc;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #4299e1;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: 600;
    color: #2d3748;
}

.status-value {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-disconnected {
    background: #fed7d7;
    color: #c53030;
}

.status-connected {
    background: #c6f6d5;
    color: #2f855a;
}

.status-connecting {
    background: #feebc8;
    color: #c05621;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(45deg, #4299e1, #3182ce);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(66, 153, 225, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #e53e3e, #c53030);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 62, 62, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.audio-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    height: 60px;
}

.audio-wave {
    display: flex;
    gap: 3px;
    align-items: center;
}

.wave-bar {
    width: 4px;
    background: linear-gradient(45deg, #4299e1, #3182ce);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.logs {
    background: #1a202c;
    color: #e2e8f0;
    border-radius: 15px;
    padding: 1rem;
    height: 200px;
    overflow-y: auto;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
}

.log-info {
    color: #4299e1;
}

.log-success {
    color: #48bb78;
}

.log-error {
    color: #f56565;
}

.log-warning {
    color: #ed8936;
}

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

.recording {
    animation: pulse 1.5s ease-in-out infinite;
}

.transcription-panel {
    background: #f7fafc;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #48bb78;
}

.transcription-panel h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.25rem;
}

.transcription-list {
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

.transcription-item {
    background: #e6fffa;
    border-left: 3px solid #38b2ac;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.transcription-item:last-child {
    margin-bottom: 0;
}

.transcription-text {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.transcription-timestamp {
    font-size: 0.75rem;
    color: #718096;
}

.transcription-placeholder {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.audio-panel {
    background: #f0fff4;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #38a169;
}

.audio-panel h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.25rem;
}

.audio-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
}

#response-audio {
    border-radius: 8px;
    background: #e6fffa;
}