* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-top: -10px;
}

.score-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.score {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.score-label {
    margin-right: 10px;
}

.score-value {
    font-size: 2rem;
}

.score-total {
    font-size: 1.3rem;
    opacity: 0.9;
}

.errors {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.4);
}

.errors-label {
    margin-right: 10px;
}

.errors-value {
    font-size: 2rem;
    color: #d63031;
}

.timer {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.4);
}

.timer-label {
    margin-right: 10px;
}

.timer-value {
    font-size: 2rem;
    color: #667eea;
}

/* Selection Container */
.selection-container {
    text-align: center;
    animation: slideIn 0.5s ease-out;
    position: relative;
    padding-top: 50px;
}

.selection-section {
    margin: 30px 0;
}

.mode-buttons,
.count-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mode-btn,
.count-btn {
    padding: 20px 35px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.mode-btn:hover,
.count-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mode-btn.active,
.count-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.start-game-btn {
    margin-top: 40px;
    padding: 25px 60px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.5);
}

.start-game-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(56, 239, 125, 0.7);
}

.start-game-btn:active {
    transform: translateY(-2px);
}

.game-wrapper {
    animation: slideIn 0.5s ease-out;
    position: relative;
    padding-top: 60px;
}

.cancel-game-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f5576c 0%, #d63031 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    z-index: 10;
}

.cancel-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.cancel-game-btn:active {
    transform: translateY(0);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Game Container */
.game-container {
    text-align: center;
}

.question-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(252, 182, 159, 0.4);
}

.question {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.answer-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.multiple-choice-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.choice-btn {
    padding: 25px 20px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    background: white;
    border: 4px solid #667eea;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    min-height: 80px;
    word-break: break-word;
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: #764ba2;
}

.choice-btn:active {
    transform: translateY(0);
}

.choice-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
}

.answer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.answer-input {
    width: 100%;
    max-width: 300px;
    padding: 20px;
    font-size: 2rem;
    text-align: center;
    border: 4px solid #667eea;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.answer-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.check-btn {
    padding: 20px 50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
}

.check-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.6);
}

.check-btn:active {
    transform: translateY(0);
}

/* Feedback */
.feedback {
    min-height: 60px;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    animation: bounceIn 0.5s ease;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    animation: shake 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Completion Screen */
.hidden {
    display: none !important;
}

.completion-container {
    text-align: center;
    animation: zoomIn 0.6s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-message h2 {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.completion-text {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.final-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f5576c;
    margin-bottom: 20px;
}

.completion-emoji {
    font-size: 4rem;
    margin-bottom: 30px;
}

.final-errors {
    font-size: 2rem;
    font-weight: bold;
    color: #d63031;
    margin-bottom: 15px;
}

.completion-time {
    font-size: 1.5rem;
    color: #999;
    margin-bottom: 20px;
}

/* Error Analysis */
.error-analysis-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.error-analysis-section h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.error-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #d63031;
}

.error-question {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.error-count {
    font-size: 1.1rem;
    color: #d63031;
    font-weight: bold;
}

.no-errors {
    text-align: center;
    font-size: 1.5rem;
    color: #38ef7d;
    padding: 20px;
}

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

.retry-errors-btn {
    padding: 20px 50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.retry-errors-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.retry-errors-btn:active {
    transform: translateY(0);
}

.restart-btn {
    padding: 20px 50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.restart-btn:active {
    transform: translateY(0);
}

.show-results-btn {
    padding: 20px 50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    margin-top: 15px;
}

.show-results-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.show-results-btn:active {
    transform: translateY(0);
}

/* Results Container */
.results-container {
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.results-message h2 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 30px;
}

.results-table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
}

.results-table th {
    padding: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.results-table td {
    padding: 12px;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.results-table tbody tr:hover {
    background: #f5f5f5;
}

.results-table tbody tr:nth-child(odd) {
    background: #fafafa;
}

.results-table .errors-cell {
    color: #d63031;
    font-weight: bold;
}

.results-table .perfect-score {
    background: #d4edda !important;
}

.results-table .perfect-score .errors-cell {
    color: #38ef7d;
}

.back-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    margin-right: 10px;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.clear-results-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #f5576c 0%, #d63031 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.clear-results-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

.no-results {
    font-size: 1.5rem;
    color: #666;
    padding: 40px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .mode-btn,
    .count-btn {
        padding: 15px 25px;
        font-size: 1.2rem;
    }

    .start-game-btn {
        padding: 20px 45px;
        font-size: 1.6rem;
    }

    .question {
        font-size: 2.5rem;
    }

    .answer-input {
        font-size: 1.5rem;
        padding: 15px;
    }

    .check-btn {
        padding: 15px 40px;
        font-size: 1.5rem;
    }

    .score,
    .errors {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    .score-value,
    .errors-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .mode-btn,
    .count-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .start-game-btn {
        padding: 18px 35px;
        font-size: 1.4rem;
    }

    .question {
        font-size: 2rem;
    }

    .completion-message h2 {
        font-size: 2rem;
    }

    .completion-emoji {
        font-size: 3rem;
    }
}


/* Main Menu */
.main-menu {
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.menu-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-btn .icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.menu-btn .text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.menu-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.math-btn {
    border-bottom: 8px solid #667eea;
}

.math-btn:hover {
    background: linear-gradient(135deg, #e6e9ff 0%, #ffffff 100%);
}

.english-btn {
    border-bottom: 8px solid #f5576c;
}

.english-btn:hover {
    background: linear-gradient(135deg, #fff0f1 0%, #ffffff 100%);
}

.back-to-menu-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
    z-index: 10;
}

.back-to-menu-btn:hover {
    color: #333;
}

.results-menu-btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.results-menu-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.question-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.speak-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.speak-btn:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.8);
}

/* English Selection */
.category-select {
    padding: 15px 30px;
    font-size: 1.2rem;
    border: 3px solid #667eea;
    border-radius: 15px;
    background: white;
    color: #333;
    outline: none;
    cursor: pointer;
    min-width: 250px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.secondary-btn {
    padding: 25px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    background: white;
    border: 3px solid #667eea;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.secondary-btn:hover {
    transform: translateY(-5px);
    background: #f8f9fa;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

/* Vocab Manager */
.vocab-manager {
    animation: slideIn 0.5s ease-out;
    width: 100%;
    position: relative;
}

.manager-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.manager-header h2 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
}

.manager-header .back-btn {
    margin: 0;
    padding: 10px 20px;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.reset-vocab-btn {
    position: absolute;
    right: 0;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #f5576c 0%, #d63031 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.reset-vocab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.add-word-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.add-word-form h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
    min-width: 150px;
}

.form-row input:focus {
    border-color: #667eea;
}

.add-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-btn:hover {
    transform: scale(1.05);
}

/* Bulk Add Form */
.bulk-add-form {
    background: #e8f4f8;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px dashed #667eea;
}

.bulk-add-form h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.bulk-help {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.bulk-help code {
    background: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: monospace;
    color: #667eea;
    font-weight: bold;
}

.bulk-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 120px;
}

.bulk-textarea:focus {
    border-color: #667eea;
}

.bulk-textarea::placeholder {
    color: #aaa;
}

.bulk-add-btn {
    margin-top: 15px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bulk-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.word-list-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.filter-bar {
    padding: 15px;
    background: #f1f2f6;
    display: flex;
    gap: 15px;
}

.filter-bar input,
.filter-bar select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-bar input {
    flex-grow: 1;
}

.vocab-table {
    width: 100%;
    border-collapse: collapse;
}

.vocab-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
}

.vocab-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.vocab-table tr:hover {
    background: #f9f9f9;
}

.delete-btn {
    background: #ff7675;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #d63031;
}

.edit-btn {
    background: #74b9ff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 5px;
    transition: background 0.2s;
}

.edit-btn:hover {
    background: #0984e3;
}

.question-hint {
    font-size: 1.5rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Word Writing Exercise Styles */
.word-writing-container {
    width: 100%;
}

.word-bubbles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.word-bubble {
    padding: 15px 25px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    background: white;
    border: 3px solid #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    user-select: none;
}

.word-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
    background: #f0f4ff;
}

.word-bubble.crossed-out {
    text-decoration: line-through;
    opacity: 0.5;
    background: #f5f5f5;
    border-color: #999;
    color: #999;
    cursor: not-allowed;
}

.word-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.word-input-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.word-input-item.correct {
    border-color: #38ef7d;
    background: #d4edda;
}

.word-input-item.incorrect {
    border-color: #f5576c;
    background: #f8d7da;
}

.word-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    min-width: 150px;
    text-align: right;
}

.word-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.4rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.word-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.word-input.correct-input {
    border-color: #38ef7d;
    background: #d4edda;
}

.word-input.incorrect-input {
    border-color: #f5576c;
    background: #f8d7da;
}

.word-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.correct-answer-hint {
    font-size: 1.2rem;
    color: #38ef7d;
    font-weight: bold;
    margin-left: auto;
}

.check-word-writing-btn {
    padding: 20px 50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.check-word-writing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.6);
}

.check-word-writing-btn:active {
    transform: translateY(0);
}

.check-word-writing-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .menu-btn {
        width: 140px;
        height: 140px;
    }

    .menu-btn .icon {
        font-size: 3rem;
    }

    .form-row {
        flex-direction: column;
    }

    .vocab-table th,
    .vocab-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}