/* Manuel Sayfalama ve Sütun Düzeni */
@page {
    size: A4;
    margin: 0; /* Sayfa marjlarını HTML içinde yöneteceğiz */
}

body {
    font-family: 'Inter', sans-serif;
    background: white;
    margin: 0;
    padding: 0;
}

/* Her Bir A4 Sayfası */
.print-page-wrapper {
    width: 210mm;
    height: 297mm;
    padding: 15mm; /* Varsayılan, JS ile ezilecek */
    box-sizing: border-box;
    position: relative;
    background: white;
    page-break-after: always;
    overflow: hidden;
}

/* Profesyonel Başlık */
.exam-header {
    border-bottom: 2px solid #2563eb;
    padding-bottom: 3mm;
    margin-bottom: 6mm;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.exam-title-area h1 {
    font-size: 14pt;
    margin: 0;
    color: #2563eb;
    text-transform: uppercase;
    font-weight: 700;
}

.exam-meta {
    font-family: 'Roboto Mono', monospace;
    font-size: 9pt;
    font-weight: 700;
}

/* Soru Konteynırları */
.exam-columns-container {
    display: flex;
    gap: 10mm;
    height: calc(100% - 25mm); /* Başlık düşüldü */
}

.print-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Soru Kartı */
.question-item {
    margin-bottom: 8mm;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.question-number {
    font-weight: 700;
    font-size: 11pt;
    color: #2563eb;
    min-width: 22px;
    padding-top: 2px;
}

.question-image-wrapper {
    flex-grow: 1;
}

.question-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Cevap Anahtarı ve Optik (Ayrı Sayfa) */
.answer-key-page, .optical-form-page {
    width: 210mm;
    height: 297mm;
    padding: 20mm;
    page-break-before: always;
    box-sizing: border-box;
}

.answer-key-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5mm;
    margin-top: 10mm;
}

.answer-key-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 3mm;
    font-family: 'Roboto Mono', monospace;
}

.optical-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-family: 'Roboto Mono', monospace;
}

.optical-bubble {
    width: 5mm;
    height: 5mm;
    border: 1px solid #000;
    border-radius: 50%;
    margin-right: 2mm;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7pt;
}
