:root {
    --primary-red: #e5322d;
    --primary-red-dark: #c42a25;
    --text-dark: #383e45;
    --text-light: #878d95;
    --border-color: #e8e8f0;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 60px;
    --navy: #1e293b;
    --cream: #f1f5f9;
    --gold: #f59e0b;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Added for STT */
    --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --red-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --orange-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --light-blue-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Speech to Text Specific Styles */
#speech-to-text-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
}

#transcript-output {
    width: 85%;
    min-height: 250px;
    /* Increased min-height */
    padding: 18px;
    /* More padding */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    /* More rounded corners */
    font-size: 1.05rem;
    /* Slightly larger font */
    line-height: 1.6;
    background-color: var(--background-light);
    resize: vertical;
    font-family: var(--font-family);
    color: var(--text-dark);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle inner shadow */
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#transcript-output:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stt-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* Consistent gap */
    justify-content: center;
}

.stt-button {
    padding: 14px 28px;
    /* More padding for larger buttons */
    border: none;
    border-radius: 10px;
    /* Slightly more rounded */
    font-size: 1.05rem;
    /* Larger font */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stt-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Stronger hover shadow */
}

.stt-button:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.stt-button svg {
    width: 20px;
    height: 20px;
}

.stt-button.start-btn {
    background: var(--green-gradient);
    color: white;
}

.stt-button.stop-btn {
    background: var(--red-gradient);
    color: white;
}

.stt-button.clear-btn {
    background: var(--orange-gradient);
    color: white;
}

.stt-button.save-btn {
    background: var(--light-blue-gradient);
    color: white;
}

#stt-status {
    text-align: center;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 10px;
    font-size: 1rem;
}

.language-select-group {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap */
    margin-bottom: 15px;
    justify-content: center;
    background-color: var(--background-white);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.language-select-group label {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.language-select-group select {
    padding: 10px 15px;
    /* More padding */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    /* Slightly larger font */
    background-color: var(--background-light);
    cursor: pointer;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23878d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.language-select-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

@media (max-width: 330px) {
    #transcript-output {
        width: 270px;
    }
}
@media (max-width: 450px) {
    .language-select-group {
        flex-direction: column;
        align-items: center;
        width: 275px;
    }
}
