.vocabulary-container {
    max-width: 700px;
    margin: 20px auto;
}

.expand-button {
    width: 100%;
    padding: 10px;
    background-color: #FFC904;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left;
    transition: background-color 0.3s;
}

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

.vocabulary-content {
    display: none;
}

.vocabulary-content.expanded {
    display: block;
}

.vocabulary-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vocabulary-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #FFC904;
    border-radius: 1px;
    font-size: 16px;
}

.vocabulary-input button {
    padding: 8px 16px;
    background-color: #FFC904;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.vocabulary-result {
    background-color: #fff;
    padding: 20px;
    border-radius: 2px;
    margin-top: 20px;
    display: none;
}

.word-result {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.word-result:last-child {
    border-bottom: none;
}

#usageStats {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 2px;
    margin-top: 20px;
    font-size: 0.9em;
    border: 1px solid #e9ecef;
}

#usageStats h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.1em;
}

#usageStats p {
    margin: 5px 0;
    color: #6c757d;
}

.definition, .example {
    display: inline-block;
}

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

.vocabulary-result h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.vocabulary-result p {
    margin: 10px 0;
    line-height: 1.5;
}

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

.audio-control button {
    padding: 8px 16px;
    background-color: #FFC904;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}

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

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

.audio-control {
    position: relative;
}

.generating-audio {
    display: none;
    color: #666;
    margin-left: 10px;
    font-style: italic;
}

.generating-audio.active {
    display: inline;
}

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

.loading.active {
    display: block;
}
