/* Custom Styles for Speech-to-Text (Whisper WASM) Tool */

.speech-to-text-page {
    background-color: #f8fafc;
    min-height: 100vh;
}

.whisper-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.whisper-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dropzone Area */
.whisper-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.whisper-dropzone:hover,
.whisper-dropzone.is-dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.whisper-dropzone-icon {
    font-size: 32px;
    color: #3b82f6;
    margin-bottom: 10px;
}

.whisper-dropzone-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.whisper-dropzone-desc {
    font-size: 13px;
    color: #64748b;
}

.whisper-divider-or {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin: 16px 0;
    position: relative;
}

.whisper-divider-or::before,
.whisper-divider-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e2e8f0;
}

.whisper-divider-or::before { left: 0; }
.whisper-divider-or::after { right: 0; }

/* Mic Trigger Record */
.whisper-mic-box {
    text-align: center;
    margin-bottom: 24px;
}

.btn-whisper-mic {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-whisper-mic:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-whisper-mic.is-recording {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    animation: whisperPulse 1.5s infinite;
}

@keyframes whisperPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Config Grid */
.whisper-form-row {
    margin-bottom: 16px;
}

.whisper-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.whisper-select {
    height: 40px !important;
    line-height: 40px !important;
    vertical-align: middle !important;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #1e293b;
    padding: 0 12px;
}

.whisper-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    margin-top: 10px;
}

.btn-whisper-convert {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-whisper-convert:hover {
    background: #1e293b;
    color: #ffffff;
}

.btn-whisper-convert:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Processing Progress Section */
.whisper-progress-item {
    margin-bottom: 20px;
}

.whisper-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.whisper-progress-track {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.whisper-progress-fill {
    height: 100%;
    background: #000000;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.whisper-progress-fill.is-active {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    background-size: 200% 100%;
    animation: fillShimmer 1.5s infinite linear;
}

@keyframes fillShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.whisper-status-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 12px;
}

/* Result Section */
.whisper-result-textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #0f172a;
    background: #fafafa;
    resize: vertical;
    outline: none;
    font-family: inherit;
}

.whisper-result-textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
}

.whisper-result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-whisper-action {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-whisper-action:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}
