.tts-container {
    max-width: 700px;
    margin: 20px auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tts-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.tts-description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}

.tts-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tts-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #FFC904;
    border-radius: 4px;
    font-size: 16px;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.tts-input button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #FFC904;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tts-input button:hover {
    background-color: #CCA104;
}

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

.tts-loading {
    display: none;
    margin: 20px 0;
    text-align: center;
    color: #666;
    font-style: italic;
}

.tts-loading.active {
    display: block;
}

.tts-result {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
    border: 1px solid #eee;
}

.tts-result.active {
    display: block;
}

.audio-control {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.audio-control button {
    padding: 8px 16px;
    background-color: #FFC904;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.audio-control button:hover {
    background-color: #CCA104;
}

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

.error {
    color: #d9534f;
    padding: 10px;
    background-color: #f9f2f2;
    border-radius: 4px;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tts-container {
        padding: 15px;
    }
    
    .audio-control {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .audio-control button {
        width: 100%;
    }
}
