/* Sana Script Writing - Custom Styles */

body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.main-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 20px;
    padding: 30px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.controls-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.mic-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.mic-button.recording {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.script-buttons .btn {
    margin: 5px;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-dialogue { background: #3498db; color: white; border: none; }
.btn-action { background: #e67e22; color: white; border: none; }
.btn-heading { background: #2c3e50; color: white; border: none; }
.btn-character { background: #27ae60; color: white; border: none; }
.btn-parenthetical { background: #8e44ad; color: white; border: none; }
.btn-transition { background: #95a5a6; color: white; border: none; }

.editor-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#editor {
    height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.export-buttons {
    margin-top: 20px;
    text-align: center;
}

.export-buttons .btn {
    margin: 10px;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-export-pdf {
    background: #e74c3c;
    color: white;
    border: none;
}

.btn-print {
    background: #27ae60;
    color: white;
    border: none;
}

.status-bar {
    background: #e9ecef;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

.status-bar .alert {
    margin: 0;
    text-align: left;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.status-bar .alert h6 {
    color: #856404;
    margin-bottom: 10px;
}

.status-bar .alert ul {
    padding-left: 20px;
}

.status-bar .alert ol {
    padding-left: 20px;
}

.mic-button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
    transform: none !important;
}

.language-selector {
    min-width: 150px;
}

.listening-indicator {
    display: none;
    color: #e74c3c;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}