.vocabulary-section {
    max-width: 1400px;
    margin: 0 auto;
}

.vocabulary-section > p {
    margin-bottom: 2rem;
    color: #666;
}

.vocabulary-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Input Section */
.input-section {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.input-section label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #333;
}

#textInput {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    background: white;
}

#textInput:focus {
    outline: none;
    border-color: #FDD0BD;
    box-shadow: 0 0 0 3px rgba(253, 208, 189, 0.1);
}

.input-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

.input-stats span {
    margin-right: 1rem;
}

/* Vocabulary Section */
.vocabulary-section-right {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.vocabulary-header {
    margin-bottom: 1rem;
}

.vocabulary-header h3 {
    margin-bottom: 1rem;
    color: #333;
}

.vocabulary-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-danger {
    padding: 0.5rem 1rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #ff5252;
}

.vocabulary-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Vocabulary Box */
.vocabulary-box {
    flex: 1;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    min-height: 300px;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.word-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.word-card:hover {
    background: #fff5f0;
    border-color: #FDD0BD;
    transform: translateX(4px);
}

.word-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.word-count {
    font-size: 1rem;
    color: #FDD0BD;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.word-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vocabulary-container {
        grid-template-columns: 1fr;
    }
    
    .vocabulary-section-right {
        max-height: none;
    }
    
    .vocabulary-box {
        min-height: 400px;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .vocabulary-controls {
        flex-direction: column;
    }
    
    .search-input,
    .sort-select,
    .btn-danger {
        width: 100%;
    }
    
    .vocabulary-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .input-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .input-stats button {
        width: 100%;
    }
}

