:root {
    --primary-color: #4a6fa5;
    --secondary-color: #e2e8f0;
    --text-color: #333;
    --border-color: #cbd5e1;
}

body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8fafc;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto 30px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input[type="date"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.passage-select select {
    width: auto;
    min-width: 80px;
    display: inline-block;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3b5998;
}

/* 활동지 영역 스타일 */
.worksheet-container {
    max-width: 210mm; /* A4 width */
    margin: 0 auto;
    background: white;
    padding: 20mm;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.worksheet-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.worksheet-header h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
}

.worksheet-info {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;
}

.worksheet-passage {
    font-size: 18px;
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 5px;
}

.section {
    margin-bottom: 30px;
}

.section h3 {
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 10px;
}

.instruction {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}

.bible-text-box {
    background-color: #fefcf5;
    border: 1px dashed var(--border-color);
    padding: 15px;
    border-radius: 5px;
    line-height: 1.8;
}

.activity-box {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 5px;
    line-height: 2.2;
    font-size: 18px;
}

.spacing-box {
    letter-spacing: 2px;
    word-break: break-all;
    line-height: 2.5;
}

.spelling-blank {
    display: inline-block;
    width: 60px;
    border-bottom: 1px solid black;
    margin: 0 5px;
}

.grammar-q {
    margin-bottom: 15px;
}

.grammar-q:last-child {
    margin-bottom: 0;
}

.grammar-passage {
    background-color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

.print-btn-container {
    margin-top: 30px;
    text-align: center;
}

/* 인쇄 시 스타일 */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
    .worksheet-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
}
