﻿.eng-lesson-wrapper {
    all: initial;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: 600px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.eng-start-screen, .eng-lesson-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 25px;
    box-sizing: border-box;
}

.eng-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.eng-settings {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

    .eng-settings label {
        display: block;
        margin: 10px 0;
        font-size: 16px;
        color: #555;
        cursor: pointer;
    }

.eng-chat-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

.eng-message {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 85%;
    line-height: 1.4;
    animation: engFadeIn 0.3s ease;
}

@keyframes engFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eng-assistant {
    background: #f1f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.eng-user {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.eng-message strong {
    display: block;
    margin-bottom: 4px;
    color: #000;
}

.eng-message small {
    color: #666;
    font-size: 0.9em;
}

.eng-task-area {
    border-top: 1px solid #eee;
    padding-top: 20px;
    min-height: 150px;
}

.eng-instruction {
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 15px;
}

.eng-word-pool, .eng-answer-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.eng-answer-box {
    min-height: 45px;
    border-bottom: 2px dashed #4a90e2;
    padding-bottom: 10px;
}

.eng-word-chip {
    padding: 8px 14px;
    background: #e1ecf4;
    border: 1px solid #b3d3ea;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

    .eng-word-chip:hover {
        background: #d0e3f0;
    }

.eng-selected {
    background: #4a90e2;
    color: white;
    border-color: #357abd;
}

.eng-btn {
    padding: 12px 25px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.eng-hidden {
    display: none !important;
}

.eng-invisible {
    visibility: hidden;
    pointer-events: none;
}
