/* Basic styling for the application */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    color: #444;
    font-size: 1.2em;
    margin-top: 0;
}

.section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

#results {
    margin-top: 20px;
}

#transcriptionText {
    white-space: pre-wrap;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
}

#metadataSection {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

#errorMessage {
    color: #d32f2f;
    font-weight: bold;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
    margin-top: 10px;
}

.error-message {
    margin-bottom: 10px;
}

.error-details {
    margin-top: 10px;
    font-size: 0.9em;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

.error-details pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
}

#loadingIndicator {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

#keyStatus {
    margin-top: 5px;
    font-weight: bold;
}

#copyBtn {
    margin-top: 10px;
    background-color: #2196F3;
}

#copyBtn:hover {
    background-color: #0b7dda;
}

/* Styling for advanced parameters section */
.param-group {
    margin-bottom: 15px;
}

.param-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.param-help {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-top: 3px;
    font-style: italic;
}

/* Toggle buttons */
.toggle-btn {
    background-color: #607d8b;
    margin-bottom: 10px;
    width: 100%;
}

.toggle-btn:hover {
    background-color: #546e7a;
}

/* Raw API response styling */
.raw-response-container {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

#rawResponseContainer {
    margin-top: 10px;
}

#rawResponse {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    
    .section {
        padding: 10px;
    }
}