body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
}

h1 {
    font-size: 1.5em;
    color: #555;
}

.status {
    font-size: 1.1em;
    color: #666;
    margin: 20px 0;
    min-height: 25px;
    white-space: pre-wrap;
}

audio {
    width: 100%;
    margin-top: 20px;
    display: none; /* Initially hidden */
}

.controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

button {
    padding: 15px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:not(:disabled):hover {
    background-color: #0056b3;
}

#stopButton {
    background-color: #dc3545;
}

#stopButton:not(:disabled):hover {
    background-color: #c82333;
}

#uploadButton {
    background-color: #28a745;
}

#uploadButton:not(:disabled):hover {
    background-color: #218838;
}
