/* HNO+ Subpage Light Blue-Indigo Theme (ui-standard-hno v2.1 + ui-ux-pro-max) */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

@media screen {
    html {
        zoom: 1 !important;
    }

    body {
        background: linear-gradient(180deg, #dbeafe 0%, #e0e7ff 40%, #f1f5f9 100%) !important;
        background-attachment: fixed !important;
        animation: none !important;
        color: #1e3a8a !important;
        font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        display: block !important;
        min-height: 100vh;
    }

    .app-wrapper {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 1480px !important;
        margin: 0 auto !important;
        padding: 1.25rem !important;
        gap: 1.25rem !important;
    }

    .container-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #bfdbfe !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 28px -8px rgba(30, 64, 175, 0.16) !important;
        padding: 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .paper {
        box-shadow: 0 10px 26px -6px rgba(15, 23, 42, 0.22) !important;
        border: 1px solid #cbd5e1;
        margin: 0 auto !important;
        flex-shrink: 0;
    }

    .container-right {
        width: 300px !important;
        flex: 0 0 300px !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #bfdbfe !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 28px -8px rgba(30, 64, 175, 0.16) !important;
        color: #1e293b !important;
        font-family: 'Be Vietnam Pro', sans-serif !important;
        padding: 1.25rem !important;
        position: sticky !important;
        top: 1.25rem !important;
    }

    .back-nav {
        margin-bottom: 1rem !important;
    }

    .back-nav a {
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        border: 1px solid #bfdbfe !important;
        border-radius: 999px !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        padding: 0.5rem 1rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        transition: all 0.15s ease !important;
    }
    .back-nav a:hover {
        background: #dbeafe !important;
        color: #1e40af !important;
        border-color: #3b82f6 !important;
    }

    .toolbar-print {
        margin-bottom: 1.25rem !important;
        gap: 10px !important;
    }

    .toolbar-print select {
        background: #f8fafc !important;
        color: #0f172a !important;
        border: 1.5px solid #bfdbfe !important;
        border-radius: 12px !important;
        padding: 0.7rem 0.9rem !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        font-family: 'Be Vietnam Pro', sans-serif !important;
    }

    .btn-print {
        background: linear-gradient(135deg, #2563eb, #4338ca) !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.45) !important;
        font-family: 'Be Vietnam Pro', sans-serif !important;
    }
    .btn-print:hover {
        transform: translateY(-1px) !important;
        filter: brightness(1.08);
    }

    .hd-box {
        background: #f8fbff !important;
        border: 1px solid #dbeafe !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        color: #334155 !important;
    }

    .right-title {
        color: #1d4ed8 !important;
        border-bottom: 1px solid #dbeafe !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        padding-bottom: 0.45rem !important;
        margin-bottom: 0.75rem !important;
    }

    .container-right p,
    .hd-box p {
        color: #475569 !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        margin-bottom: 0.45rem !important;
    }
    .container-right b,
    .hd-box b {
        color: #0f172a !important;
    }

    .custom-controls .right-title {
        color: #1e3a8a !important;
    }
    .ipt.nm {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1.5px solid #bfdbfe !important;
        font-weight: 700 !important;
    }
    .btn.apply {
        background: #eff6ff !important;
        border: 1px solid #93c5fd !important;
        color: #1d4ed8 !important;
        font-weight: 700 !important;
    }
    .btn.apply:hover {
        background: #2563eb !important;
        color: #ffffff !important;
    }

    /* Auto-fit landscape or wide papers inside container-left */
    .paper.landscape-paper {
        zoom: 0.88;
    }
    @media (max-width: 1460px) {
        .paper.landscape-paper {
            zoom: 0.78;
        }
    }
    @media (max-width: 1280px) {
        .paper.landscape-paper {
            zoom: 0.66;
        }
    }
    @media (max-width: 1024px) {
        .app-wrapper {
            flex-direction: column-reverse !important;
            padding: 0.75rem !important;
        }
        .container-right {
            width: 100% !important;
            flex: none !important;
            position: static !important;
        }
        .container-left {
            width: 100% !important;
            padding: 0.75rem !important;
        }
        .paper {
            zoom: 0.82;
        }
        .paper.landscape-paper {
            zoom: 0.62;
        }
    }
    @media (max-width: 640px) {
        .paper {
            zoom: 0.44;
        }
        .paper.landscape-paper {
            zoom: 0.31;
        }
    }
}

@media print {
    html, .paper, .paper.landscape-paper {
        zoom: 1 !important;
    }
}
