/* YapaySınıf Matematik Ödevleri Genel CSS */
body { font-family: 'Inter', sans-serif; background-color: #f1f5f9; overflow-x: hidden; }
.nunito { font-family: 'Nunito', sans-serif; }

#paper-preview-wrapper {
    background-color: #525659;
    min-height: calc(100vh - 64px);
    padding: 24px 12px 60px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.worksheet-a4-page {
    width: 210mm;
    height: 296.5mm;
    max-height: 296.5mm;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    margin: 0 auto 30px auto;
    padding: 8mm 10mm 6mm 10mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    color: #1e293b;
}

/* Çerçeve Stilleri */
.frame-modern { border: 2.5px solid #4f46e5; border-radius: 12px; }
.frame-classic { border: 2px solid #0f172a; border-radius: 4px; }
.frame-dotted { border: 2.5px dashed #64748b; border-radius: 12px; }
.frame-none { border: none; }

/* Soru Kartı (Kutucuklu Konular İçin) */
.q-card {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    break-inside: avoid;
}

/* Kesir Çizgisi */
.fraction-view {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    line-height: 1;
}
.fraction-view .num {
    border-bottom: 2px solid #1e293b;
    padding: 1px 4px;
    width: 100%;
    text-align: center;
}
.fraction-view .den {
    padding: 2px 4px 1px 4px;
    width: 100%;
    text-align: center;
}

/* Yazdırma Modu */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    html, body {
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    #app-header, #settings-sidebar, .no-print, .adsbygoogle {
        display: none !important;
    }
    #paper-preview-wrapper {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
    }
    .worksheet-a4-page {
        width: 210mm !important;
        height: 296.5mm !important;
        max-height: 296.5mm !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 8mm 10mm 6mm 10mm !important;
        page-break-after: always !important;
        break-after: page !important;
        overflow: hidden !important;
    }
    .answer-key-page {
        page-break-before: always !important;
        break-before: page !important;
    }
}

.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
