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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

.left-panel {
    flex: 1;
    padding: 2rem;
    background-color: white;
    border-right: 1px solid #e0e0e0;
}

.right-panel {
    flex: 1;
    padding: 2rem;
    background-color: #fafafa;
    overflow-y: auto;
}

h1, h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #45a049;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #da190b;
}

.status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.audio-visualizer {
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

#visualizer {
    width: 100%;
    height: 100px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.info-panel {
    background-color: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
}

.info-panel h3 {
    margin-bottom: 0.5rem;
    color: #1976d2;
}

.info-panel p {
    margin-bottom: 0.25rem;
}

.transcription-container {
    min-height: 400px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 3rem;
}

.transcription-item {
    background-color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s ease;
}

.transcription-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.transcription-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.segment-info {
    font-weight: 500;
    color: #666;
}

.transcription-text {
    color: #333;
    line-height: 1.6;
}

.transcription-line {
    margin-bottom: 0.5rem;
}

.speaker {
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    min-width: 80px;
}

.speaker.medico {
    color: #1976d2;
}

.speaker.paciente {
    color: #388e3c;
}

.speaker.speaker {
    color: #666;
}

.timestamp {
    color: #999;
    font-size: 0.8rem;
}

/* Indicador de processamento */
.transcription-processing {
    background-color: #fff3e0;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    animation: pulse 1.5s ease-in-out infinite;
}

.processing-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        flex: none;
        height: 50vh;
    }
}
