/* Speech to Text Converter Styles */
.stt-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.stt-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stt-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stt-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.stt-btn-primary {
    background-color: #4a6bff;
    color: white;
}

.stt-btn-primary:hover {
    background-color: #3a5bef;
    transform: translateY(-2px);
}

.stt-btn-secondary {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.stt-btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.stt-status {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    min-height: 1.5rem;
}

.stt-status-active {
    color: #28a745;
    font-weight: 600;
}

.stt-text-container {
    position: relative;
    margin-bottom: 1rem;
}

.stt-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    background-color: white;
}

.stt-textarea:focus {
    outline: none;
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.stt-interim {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: #6c757d;
    font-style: italic;
    pointer-events: none;
}

.stt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.stt-language-selector {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.stt-language-selector select {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #dee2e6;
    background-color: white;
    font-size: 0.9rem;
    max-width: 300px;
    width: 100%;
}

/* Microphone animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stt-active .stt-mic-icon {
    color: #dc3545;
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stt-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .stt-btn {
        width: 100%;
        justify-content: center;
    }
    
    .stt-actions {
        flex-direction: column;
    }
    
    .stt-actions .stt-btn {
        width: 100%;
    }
}