@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

.setc-box {
    max-width: 720px;
    margin: 20px auto;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: 'Hind Siliguri', sans-serif;
}

.setc-form {
    display: grid;
    gap: 10px;
}

.setc-form input[type="text"],
.setc-form select,
.setc-form textarea,
.setc-inline-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif;
}

.setc-student-preview {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 6px 0;
}

.setc-student-preview p {
    margin: 4px 0;
}

.setc-due-options {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 6px 0;
}

.setc-radio-group {
    display: flex;
    gap: 18px;
    margin: 8px 0 10px;
    flex-wrap: wrap;
}

.setc-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
}

.setc-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.setc-inline-form {
    display: flex;
    gap: 10px;
}

.setc-btn {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Hind Siliguri', sans-serif;
    transition: all 0.2s ease;
}

.setc-btn:hover,
.setc-btn.is-active {
    background: #0f172a;
}

.setc-btn-print {
    background: #0f766e;
}

.setc-btn-bkash {
    background: #e2136e;
}

.setc-btn-bkash:hover {
    background: #be125c;
}

/* বিকাশ মডাল */
.setc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Hind Siliguri', sans-serif;
}

.setc-modal-card {
    position: relative;
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
    border-top: 5px solid #e2136e;
}

.setc-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #475569;
}

.setc-modal-title {
    margin: 0 0 10px;
    color: #e2136e;
    font-size: 20px;
}

.setc-bkash-number-box {
    background: #fdf2f8;
    border: 1px dashed #e2136e;
    color: #831843;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 17px;
    margin: 12px 0;
}

.setc-modal-note {
    font-size: 14px;
    line-height: 1.65;
    color: #1e293b;
    margin-bottom: 16px;
}

.setc-controls {
    max-width: 860px;
    margin: 22px auto 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* PDF লেআউটের সাথে সামঞ্জস্যপূর্ণ প্রাতিষ্ঠানিক সার্টিফিকেট ডিজাইন */
.setc-cert-sheet {
    max-width: 860px;
    margin: 16px auto 34px;
    font-family: 'Hind Siliguri', sans-serif;
}

.setc-cert-sheet.lang-ar {
    font-family: 'Noto Naskh Arabic', 'Hind Siliguri', serif;
}

.setc-cert-frame {
    background: #ffffff;
    border: 3px solid #1e293b;
    outline: 2px solid #94a3b8;
    outline-offset: -8px;
    padding: 34px 38px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.pdf-cert-top {
    text-align: center;
    border-bottom: 1.5px solid #334155;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.pdf-school-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.pdf-school-address {
    margin: 4px 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.pdf-meta-line {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e3a8a;
}

.pdf-web-line {
    margin-top: 4px;
    font-size: 13px;
    color: #475569;
}

.pdf-serial-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14.5px;
    margin-bottom: 16px;
    color: #0f172a;
}

.pdf-dotted {
    border-bottom: 1px dotted #475569;
    padding: 0 8px 1px;
    font-weight: 600;
}

.pdf-badge-wrap {
    text-align: center;
    margin: 14px 0 20px;
}

.pdf-cert-badge {
    display: inline-block;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 7px 24px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.pdf-cert-body {
    color: #0f172a;
}

.pdf-lead {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.pdf-main-text {
    margin: 0 0 12px;
    font-size: 16.5px;
    line-height: 2;
    text-align: justify;
}

.setc-cert-sheet.lang-ar .pdf-main-text {
    text-align: right;
    line-height: 2.15;
}

.pdf-wish {
    margin: 12px 0 0;
    font-size: 15.5px;
    font-weight: 500;
}

.pdf-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed #94a3b8;
}

.pdf-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.pdf-online-note {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #1e3a8a;
    border-radius: 6px;
    padding: 12px 16px;
}

.setc-cert-sheet.lang-ar .pdf-online-note {
    border-left: 1px solid #cbd5e1;
    border-right: 4px solid #1e3a8a;
}

.pdf-online-badge {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.pdf-online-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
}

.setc-alert,
.setc-verify-card {
    max-width: 720px;
    margin: 14px auto;
    padding: 14px;
    border-radius: 8px;
    font-family: 'Hind Siliguri', sans-serif;
}

.setc-alert,
.setc-verify-card.invalid {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.setc-alert.success,
.setc-verify-card.valid {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

@media print {
    .no-print,
    .setc-modal-backdrop {
        display: none !important;
    }

    .setc-cert-sheet {
        max-width: 100%;
        margin: 0;
    }

    .setc-cert-frame {
        box-shadow: none;
        padding: 24px 28px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .pdf-cert-badge,
    .pdf-online-note,
    .pdf-qr-block {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}