﻿.guarded-logout-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(4px);
}

    .guarded-logout-overlay.open {
        display: grid;
    }

.guarded-logout-dialog {
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
    border: 1px solid #dbe4ee;
}

    .guarded-logout-dialog h2 {
        margin: 0 0 16px;
        font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
        font-size: 25px;
        color: #063b73;
    }

    .guarded-logout-dialog p {
        margin: 0;
        font-size: 18px;
        line-height: 2.1;
        color: #1f2937;
    }

.guarded-logout-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

    .guarded-logout-actions .primary-action,
    .guarded-logout-actions .secondary-action {
        min-width: 130px;
        height: 46px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }

/*********************************************صفحه لاگین/ 
/*********************************************/
/*********************************************/
:root {
    --page-bg: #edf5ff;
    --card-bg: #ffffff;
    --text: #101828;
    --muted: #5f6b7a;
    --primary: #1769e8;
    --primary-dark: #0f56c8;
    --danger: #d92d20;
    --success: #027a48;
    --border: #d0d5dd;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    font-size: 16px;
}


@font-face {
    font-family: "B Titr";
    src: url("/fonts/BTitr.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "B Koodak";
    src: url("/fonts/BKoodak.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}





body {
    margin: 0;
    min-height: 100vh;
    font-family: "B Koodak", Tahoma, Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);

}

.login-card h1,
.login-card h2,
.login-card h3,
.school-year,
.login-button {
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    font-weight: 700;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 34%), linear-gradient(180deg, #edf5ff 0%, #eaf3ff 100%);
}

.login-card {
    width: min(100%, 480px);
    background: var(--card-bg);
    border-radius: 16px;
    padding: 44px 54px 40px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(22, 43, 77, 0.14);
}

.school-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin-bottom: 18px;
}

.login-card h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #000;
}

.login-card h2 {
    margin: 18px 0 0;
    font-size: 26px;
    font-weight: 700;
    color: blue ;
}

.login-card h3 {
    margin: 18px 0 0;
    font-size: 22px;
    font-weight: 700;
    color: slategrey ;
}

.school-year {
    margin: 24px 0 30px;
    font-size: 24px;
    font-weight: 800;
    color: #d60000;
}

.login-form {
    display: grid;
    gap: 14px;
}

.input-group input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 16px;
    text-align: right;
    outline: none;
    background: #fff;
}

    .input-group input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(23, 105, 232, 0.12);
    }

.login-button {
    width: 92%;
    justify-self: center;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), #0759d8);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 2px;
}

    .login-button:hover {
        background: linear-gradient(90deg, var(--primary-dark), #064dbb);
    }

.field-error {
    color: var(--danger);
    font-size: 14px;
    text-align: right;
}

.message {
    border-radius: 10px;
    padding: 12px 14px;
    line-height: 1.8;
    text-align: right;
    font-size: 14px;
}

    .message.success {
        background: #ecfdf3;
        color: var(--success);
    }

    .message.error {
        background: #fff1f0;
        color: var(--danger);
    }

.problem-list {
    margin: 0;
    padding: 12px 28px 12px 14px;
    border-radius: 10px;
    background: #fff1f0;
    color: var(--danger);
    line-height: 1.9;
    text-align: right;
    font-size: 14px;
}

@media (max-width: 520px) {
    .login-card {
        padding: 34px 24px 30px;
        border-radius: 14px;
    }

        .login-card h1 {
            font-size: 28px;
        }

    .school-year {
        font-size: 22px;
    }

    .login-button {
        width: 100%;
    }
}


.login-status-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.login-status-dialog {
    width: min(540px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 30px;
    text-align: center;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.26);
    border: 1px solid #dbe4ee;
}

    .login-status-dialog h2 {
        margin: 0 0 18px;
        font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
        font-size: 25px;
        color: #063b73;
    }

    .login-status-dialog p {
        margin: 0;
        font-size: 18px;
        line-height: 2.1;
        color: #1f2937;
        white-space: pre-line;
    }

.login-status-overlay.closing {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.school-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 18px;
}


/***********************************************برای صفحه مشخصات*/
.app-page {
    min-height: 100vh;
    padding: 32px 20px;
    background: #edf5ff;
}

.app-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--primary);
    font-weight: 700;
}

.page-header h1 {
    margin: 0;
    font-family: "BTitr", "BKoodak", Tahoma, Arial, sans-serif;
    font-size: 28px;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

.student-side,
.form-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(22, 43, 77, 0.08);
    border: 1px solid #dbe4ee;
}

.student-side {
    padding: 18px;
    text-align: center;
}

.student-photo {
    width: 150px;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dbe4ee;
    background: #f3f6f9;
}

.student-summary {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: #4b5563;
}

    .student-summary strong {
        color: #111827;
        font-size: 18px;
    }

.form-panel {
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

    .field label {
        font-weight: 700;
        color: #344054;
    }

    .field input,
    .field textarea {
        width: 100%;
        border: 1px solid #d0d5dd;
        border-radius: 9px;
        padding: 11px 13px;
        font-family: "BKoodak", Tahoma, Arial, sans-serif;
        font-size: 16px;
        outline: none;
    }

    .field textarea {
        resize: vertical;
    }

        .field input:focus,
        .field textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(23, 105, 232, 0.12);
        }

    .field.full {
        grid-column: 1 / -1;
    }

.actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.primary-action {
    min-width: 180px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-family: "BTitr", "BKoodak", Tahoma, Arial, sans-serif;
    font-size: 18px;
    cursor: pointer;
}

    .primary-action:hover {
        background: var(--primary-dark);
    }

.readonly-field {
    background: #f3f6fa !important;
    color: #667085 !important;
    border-style: dashed !important;
    cursor: not-allowed;
}

    .readonly-field:focus {
        border-color: #d0d5dd !important;
        box-shadow: none !important;
    }

.competitions-grid {
    display: grid;
    gap: 16px;
}

.competition-card {
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 16px;
    background: #f8fbff;
}

    .competition-card.active {
        border-color: #1769e8;
        background: #f4f8ff;
    }

.competition-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #123c69;
    margin-bottom: 14px;
}

    .competition-check input {
        width: 18px;
        height: 18px;
    }

.competition-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

    .competition-fields .field.full {
        grid-column: 1 / -1;
    }

    .competition-fields select {
        width: 100%;
        height: 44px;
        border: 1px solid #d0d5dd;
        border-radius: 9px;
        padding: 0 12px;
        font-family: "B Koodak", Tahoma, Arial, sans-serif;
        font-size: 15px;
        background: #fff;
        outline: none;
    }

        .competition-fields select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(23, 105, 232, 0.12);
        }

.competition-card:not(.active) .competition-fields {
    opacity: 0.55;
}

@media (max-width: 640px) {
    .competition-fields {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 840px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* بزرگ‌تر و خواناتر کردن تقویم شمسی */
/******************************************/
/******************************************/
.datepicker-plot-area {
    width: 310px !important;
    font-family: "B Koodak", Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 45px rgba(22, 43, 77, 0.18) !important;
}

    .datepicker-plot-area .datepicker-day-view .table-days td,
    .datepicker-plot-area .datepicker-day-view .table-days th {
        width: 40px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .datepicker-plot-area .datepicker-header {
        height: 42px !important;
    }

        .datepicker-plot-area .datepicker-header .btn-next,
        .datepicker-plot-area .datepicker-header .btn-switch,
        .datepicker-plot-area .datepicker-header .btn-prev {
            height: 38px !important;
            line-height: 38px !important;
            font-size: 16px !important;
        }

    .datepicker-plot-area .datepicker-day-view .month-grid-box .header,
    .datepicker-plot-area .datepicker-year-view .year-item,
    .datepicker-plot-area .datepicker-month-view .month-item {
        font-size: 16px !important;
    }

    .datepicker-plot-area .toolbox {
        padding: 8px 10px !important;
        font-size: 15px !important;
    }
/******************************************/
/******************************************/
/*****************************************صفحه رسید و کد پیگیری*/
.app-container.narrow {
    width: min(760px, 100%);
}

.payment-panel {
    display: grid;
    gap: 18px;
}

.payment-status {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0f4f83;
}

    .payment-status img {
        width: 160px;
        max-height: 220px;
        object-fit: contain;
        border-radius: 10px;
        border: 1px solid #dbe4ee;
        background: #fff;
        justify-self: center;
    }

.actions-row.split {
    justify-content: space-between;
    align-items: center;
}

.secondary-action {
    min-width: 150px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    color: #344054;
    text-decoration: none;
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    font-size: 17px;
    background: #fff;
}

    .secondary-action:hover {
        background: #f8fafc;
    }

.receipt-preview-button {
    justify-self: center;
    display: grid;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #1769e8;
    font-family: "B Koodak", Tahoma, Arial, sans-serif;
    cursor: pointer;
}

    .receipt-preview-button img {
        width: 160px;
        max-height: 220px;
        object-fit: contain;
        border-radius: 10px;
        border: 1px solid #dbe4ee;
        background: #fff;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .receipt-preview-button:hover img {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(22, 43, 77, 0.16);
    }
.receipt-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

    .receipt-modal.open {
        display: block;
    }

.receipt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
}

.receipt-modal-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 720px);
    max-height: 88vh;
    margin: 6vh auto;
    display: grid;
    gap: 12px;
    justify-items: center;
}

    .receipt-modal-content img {
        max-width: 100%;
        max-height: 78vh;
        object-fit: contain;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    }

.receipt-modal-close {
    justify-self: end;
    border: 0;
    border-radius: 9px;
    padding: 9px 16px;
    background: #ffffff;
    color: #111827;
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    cursor: pointer;
}


.receipt-thumb-wrap {
    position: relative;
    display: inline-block;
}

.receipt-watermark {
    position: absolute;
    inset: auto 10px 10px 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
    animation: watermarkBlink 1.15s ease-in-out infinite;
}

@keyframes watermarkBlink {
    0%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-1px);
    }
}




.tuition-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbe4ee;
}

    .tuition-summary.full {
        grid-column: 1 / -1;
    }

.tuition-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
}

    .tuition-row span {
        color: #475569;
        font-weight: 700;
    }

    .tuition-row strong {
        color: #123c69;
        font-size: 17px;
    }

    .tuition-row small {
        grid-column: 2;
        color: #64748b;
        line-height: 1.8;
    }

    .tuition-row.total {
        background: #eef7ff;
        border: 1px solid #bfdbfe;
    }

        .tuition-row.total strong {
            color: #0f56c8;
        }

.money-words {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}


.variable-tuition-info {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
    color: #c62828;
    font-family: "B Titr", Tahoma, sans-serif;
}

.variable-grade {
    padding: 8px 0;
}

    .variable-grade + .variable-grade {
        border-top: 1px solid #f1d0d0;
    }

.variable-labels,
.variable-values {
    display: grid;
    grid-template-columns: 115px 2fr 1fr 1.4fr;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.variable-labels {
    font-size: 15px;
}

    .variable-labels b {
        text-align: right;
        color: #a91d1d;
    }

.variable-values {
    margin-top: 4px;
    padding-right: 127px;
    grid-template-columns: 2fr 1fr 1.4fr;
    font-size: 16px;
    color: #b42318;
}

@media (max-width: 700px) {
    .variable-labels,
    .variable-values {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }

        .variable-labels b {
            width: 100%;
            text-align: center;
        }
}

.fixed-tuition-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    white-space: nowrap;
    line-height: 1.6;
}

    .fixed-tuition-label > span:first-child {
        color: #344054;
        font-weight: 700;
    }

    .fixed-tuition-label > span:last-child {
        color: #c62828;
        font-family: "B Titr", "B Koodak", Tahoma, sans-serif;
        font-size: 14px;
    }

    /*******************************************/
    /*******************************************/
    /******************************************صفحه آخر*/
.agreement-document {
    display: grid;
    gap: 18px;
}

.agreement-title-block {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #dbe4ee;
}

    .agreement-title-block strong,
    .agreement-title-block h2,
    .agreement-section h3,
    .agreement-subtitle {
        font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    }

    .agreement-title-block strong {
        display: block;
        color: #123c69;
        margin-bottom: 14px;
    }

    .agreement-title-block h2 {
        margin: 0;
        color: #063b73;
        font-size: 24px;
    }

    .agreement-title-block p {
        margin: 12px 0 0;
        color: #344054;
        font-weight: 700;
    }

.agreement-intro {
    background: #f1f8ff;
    border-right: 4px solid #1769e8;
    border-radius: 12px;
    padding: 16px 18px;
    line-height: 2.1;
    color: #243b53;
}

    .agreement-intro p {
        margin: 0;
    }

        .agreement-intro p + p {
            margin-top: 10px;
        }

.agreement-section {
    display: grid;
    gap: 12px;
    padding-top: 10px;
}

    .agreement-section h3 {
        margin: 0;
        color: #063b73;
        font-size: 23px;
    }

.agreement-subtitle {
    color: #123c69;
    font-size: 18px;
    margin-top: 6px;
}

.agreement-rule-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    line-height: 2;
    color: #1f2937;
    cursor: pointer;
}

    .agreement-rule-item:hover {
        border-color: #94c6ff;
        background: #f8fbff;
    }

    .agreement-rule-item input {
        width: 18px;
        height: 18px;
        margin-top: 8px;
        accent-color: #1769e8;
    }

.agreement-note-card {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    line-height: 2;
}

.agreement-final-check {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    background: #eef7ff;
    border: 1px solid #b7ddff;
    color: #123c69;
    font-weight: 700;
    line-height: 2;
}

    .agreement-final-check input {
        width: 19px;
        height: 19px;
        margin-top: 8px;
        accent-color: #1769e8;
    }

    .agreement-final-check:has(input:disabled) {
        opacity: 0.58;
    }

.primary-action:disabled,
.primary-action[disabled] {
    background: #c7d7ee !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    box-shadow: none !important;
    filter: grayscale(0.35);
}

    .primary-action:disabled:hover,
    .primary-action[disabled]:hover {
        background: #c7d7ee !important;
        transform: none !important;
    }

.page-header h1 {
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    font-size: 36px;
    color: #071f3f;
    font-weight: 700;
}

.final-agreement-heading {
    text-align: center;
    margin-bottom: 22px;
}

    .final-agreement-heading h2 {
        font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
        font-size: 25px;
        color: #063b73;
        margin: 0;
    }

.page-subtitle {
    margin: 8px 0 0;
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    font-size: 20px;
    color: #063b73;
    font-weight: 700;
}

.agreement-required-warning {
    margin-top: 14px;
    padding: 10px 14px;
    text-align: center;
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    font-size: 20px;
    color: #c40000;
    background: #fff1f1;
    border: 1px solid #ffc9c9;
    border-radius: 10px;
    line-height: 1.9;
}

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(4px);
}

.success-dialog {
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 34px 32px;
    text-align: center;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
    border: 1px solid #dbe4ee;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: #027a48;
    font-size: 38px;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 800;
}

.success-dialog h2 {
    margin: 0;
    font-family: "B Titr", "B Koodak", Tahoma, Arial, sans-serif;
    font-size: 26px;
    color: #063b73;
}

.success-dialog p {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 2;
    color: #1f2937;
}

.success-dialog span {
    display: block;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.9;
    color: #667085;
}