body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

h1 {
    color: #2c3e50;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

button {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#copyBtn {
    background-color: #2ecc71;
}

#copyBtn:hover {
    background-color: #27ae60;
}

#clearBtn {
    background-color: #e74c3c;
}

#clearBtn:hover {
    background-color: #c0392b;
}

#downloadBtn {
    background-color: #9b59b6;
}

#downloadBtn:hover {
    background-color: #8e44ad;
}

#playBtn {
    background-color: #f1c40f;
    color: #2c3e50;
}

#playBtn:hover {
    background-color: #f39c12;
}

#playBtn:disabled {
    background-color: #95a5a6;
    color: white;
}

#audioPlayer {
    width: 100%;
    margin-top: 10px;
}

.text-container {
    margin-bottom: 20px;
}

#interimResult {
    width: 100%;
    min-height: 50px;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    padding: 10px;
    font-size: 16px;
    color: #95a5a6;
    border-bottom: none;
}

#transcript {
    width: 100%;
    min-height: 150px;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    padding: 10px;
    font-size: 16px;
    white-space: pre-wrap;
}

.status {
    text-align: center;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.spell-check {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.spell-check h3 {
    margin-top: 0;
    color: #2c3e50;
}

.correction {
    color: #e74c3c;
    text-decoration: underline;
    cursor: pointer;
}

.suggestions {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.suggestion {
    padding: 5px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #f0f0f0;
}

.listening {
    background-color: #e74c3c !important;
}

.formatting {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}