body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.worksheet-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.header-banner {
    background-color: #2b9cb0;
    color: white;
    padding: 25px 30px;
}

.header-banner h1 {
    margin: 0 0 5px 0;
    font-size: 26px;
    font-weight: 600;
}

.header-banner p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.focus-box {
    background-color: #eef8fa;
    border-left: 4px solid #2b9cb0;
    padding: 12px 20px;
    margin: 20px 30px 10px 30px;
    font-size: 14px;
    color: #2c3e50;
}

.content {
    padding: 20px 30px 30px 30px;
}

h2 {
    color: #2b9cb0;
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eef8fa;
    padding-bottom: 6px;
}

input[type="text"] {
    border: none;
    border-bottom: 2px solid #2b9cb0;
    background: #f9f9f9;
    padding: 5px 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

input[type="text"]:focus {
    background: #eef8fa;
}

.word-bank {
    background-color: #eef8fa;
    border: 2px dashed #2b9cb0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 12px;
    margin: 15px 0 20px 0;
    color: #2c3e50;
}

.matching-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.matching-left {
    flex: 1;
}

.matching-right {
    flex: 1.2;
    background-color: #eef8fa;
    border: 1px solid #bce2e8;
    border-radius: 8px;
    padding: 15px;
}

.matching-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.matching-row input {
    width: 35px;
    height: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.matching-right div {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.day-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.day-input-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #2b9cb0;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
    font-size: 12px;
    color: #2b9cb0;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.day-input-tag input {
    width: 25px;
    height: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #999;
    border-radius: 3px;
}

.svg-container {
    width: 100%;
    height: 130px;
    background: #f0f0f0;
}

svg {
    width: 100%;
    height: 100%;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background-color: #fafafa;
    background-image: repeating-linear-gradient(transparent, transparent 27px, #e0e0e0 28px);
    line-height: 28px;
}

textarea:focus {
    outline: none;
    border-color: #2b9cb0;
}

.question-block {
    margin-bottom: 20px;
}

.question-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
}

.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-left: 5px;
}

.option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    user-select: none;
    border: 1px solid transparent;
}

.option-label:hover {
    background-color: #eef8fa;
}

.option-label input[type="radio"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #2b9cb0;
}

.picture-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.selectable-card {
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #fff;
}

.selectable-card:hover {
    border-color: #2b9cb0;
    transform: translateY(-2px);
}

.selectable-card input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #2b9cb0;
    z-index: 5;
}

.card-caption {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    background: #fafafa;
    color: #555;
}

.submit-btn {
    display: block;
    width: 100%;
    background-color: #2b9cb0;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #238091;
}

#score-board {
    display: none;
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.score-pass {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.score-fail {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.is-correct {
    border-color: #28a745 !important;
    background-color: #d4edda !important;
}

.is-incorrect {
    border-color: #dc3545 !important;
    background-color: #f8d7da !important;
}

label.is-correct {
    border: 1px solid #28a745 !important;
    color: #155724;
}

label.is-incorrect {
    border: 1px solid #dc3545 !important;
    color: #721c24;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #2b9cb0;
    font-weight: bold;
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}