/* Custom styles & Print rules for Bangladesh Bank UDYOG Application */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d5f3a;
    --primary-dark: #083b24;
    --primary-light: #e8f5ee;
    --accent-gold: #c59b27;
}

body {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.font-english {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* AI Chat Drawer & Transitions */
#aiChatDrawer {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Screen Mode for Previewing Official 7-Page PDF */
.screen-preview-container {
    background: #525659;
    padding: 30px 15px;
    min-height: 100vh;
}

.official-pdf-page-card {
    position: relative;
    background: #ffffff;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    overflow: hidden;
}

.official-page-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.official-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    color: #000000;
}

/* Official Print Stylesheet */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 210mm !important;
        height: 100% !important;
    }

    .no-print {
        display: none !important;
    }

    .screen-preview-container {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .official-pdf-page-card {
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        overflow: hidden !important;
    }

    .official-pdf-page-card:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }

    .official-page-canvas {
        width: 210mm !important;
        height: 297mm !important;
    }

    .official-page-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        color: #000000 !important;
    }
}
