/* v002 RASA styling including volume calibration */

.rasa-container {
background: #f5f5f5;
padding: 20px;
border-radius: 8px;
margin: 20px 0;
}

.script-panel {
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
padding: 15px;
margin-bottom: 20px;
min-height: 150px;
}

.script-panel textarea {
width: 100%;
height: 120px;
border: none;
background: transparent;
font-size: 14px;
line-height: 1.5;
resize: vertical;
}

.controls {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
}

.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}

.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
background-color: #ccc !important;
}

.btn-record { background: #dc3545; color: white; }
.btn-record:hover { background: #c82333; }
.btn-record.recording { background: #28a745; }

.btn-pause { background: #ffc107; color: black; }
.btn-pause:hover { background: #e0a800; }

.btn-stop { background: #6c757d; color: white; }
.btn-stop:hover { background: #5a6268; }

.btn-cut { background: #17a2b8; color: white; }
.btn-cut:hover { background: #138496; }

.btn-save { background: #28a745; color: white; }
.btn-save:hover { background: #218838; }

.btn-calibrate {
background: #17a2b8;
color: white;
padding: 5px 10px;
font-size: 12px;
white-space: nowrap;
}
.btn-calibrate:hover { background: #138496; }

.volume-controls {
display: flex;
align-items: center;
gap: 10px;
margin: 10px 0;
}

.volume-slider { width: 100px; }

.time-display {
font-family: monospace;
font-size: 16px;
background: #333;
color: white;
padding: 5px 10px;
border-radius: 3px;
}

.volume-calibration {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
border: 2px solid #007bff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
z-index: 1000;
min-width: 400px;
text-align: center;
}

.volume-calibration.hidden { display: none; }

.vu-meter {
display: flex;
justify-content: center;
gap: 2px;
margin: 20px 0;
height: 60px;
align-items: flex-end;
}

.vu-cell {
width: 20px;
height: 100%;
border: 1px solid #333;
border-radius: 2px;
transition: background-color 0.05s ease;
}

.vu-cell.off { background-color: #000; }
.vu-cell.quiet { background-color: #666; }
.vu-cell.good { background-color: #ffeb3b; }
.vu-cell.hot { background-color: #f44336; }
.vu-cell.clipping {
background-color: #00ff00;
animation: flash 0.1s infinite;
}

@keyframes flash {
0%, 100% { background-color: #00ff00; }
50% { background-color: #ffffff; }
}

.calibration-instructions {
font-size: 16px;
margin-bottom: 15px;
line-height: 1.4;
}

.waveform-container {
position: relative;
width: 100%;
height: 300px;
border: 2px solid #ddd;
border-radius: 5px;
margin-bottom: 20px;
overflow: hidden;
background: #000;
}

.waveform-canvas {
width: 100%;
height: 100%;
display: block;
}

.markers-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}

.zoom-controls {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}

.zoom-slider { width: 200px; }

.export-section {
margin-top: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 5px;
}

.progress-bar {
width: 100%;
height: 20px;
background: #e9ecef;
border-radius: 10px;
overflow: hidden;
margin: 10px 0;
}

.progress-fill {
height: 100%;
background: #007bff;
width: 0%;
transition: width 0.3s ease;
}

.advice-panel {
background: #e8f4fd;
border: 1px solid #b3d9ff;
border-radius: 5px;
padding: 15px;
margin-top: 20px;
}

.advice-panel h4 {
margin-top: 0;
color: #0066cc;
}
