/* =========================
   THEME VARIABLES
========================= */

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-soft: #f1f5f9;

    --text-main: #111827;
    --text-muted: #6b7280;

    --border-color: #e5e7eb;

    --primary: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;

    --shadow-soft: 0 4px 16px rgba(16, 24, 40, 0.08);
}

/* =========================
   DARK MODE
========================= */

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-surface: #111827;
    --bg-soft: #1f2937;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;

    --border-color: #1f2937;

    --primary: #60a5fa;
    --success: #22c55e;
    --danger: #f87171;

    --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.bg-primary {
    background: var(--primary) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.text-muted {
    color: var(--text-muted) !important;
}
.text-main {
    color: var(--text-main);
}

@font-face {
    font-family: btitrb;
    src: url('../fonts/B Titr Bold.ttf');
}

@font-face {
    font-family: vazir;
    src: url('../fonts/Vazir.ttf');
}

@font-face {
    font-family: davat;
    src: url('../fonts/B Davat.ttf');
}

@font-face {
    font-family: taha-r;
    src: url('../fonts/Bahij Uthman Taha-Regular.ttf');
}

@font-face {
    font-family: taha-b;
    src: url('../fonts/Bahij Uthman Taha-Bold.ttf');
}

@font-face {
    font-family: BNazanin;
    src: url('../fonts/B Nazanin.ttf');
}

@font-face {
    font-family: iransans;
    src: url('../fonts/IRANSans.ttf');
}

@font-face {
    font-family: bmitrab;
    src: url('../fonts/B Mitra Bold.ttf');
}

@font-face {
    font-family: bmitra;
    src: url('../fonts/B Mitra.ttf');
}

@font-face {
    font-family: times;
    src: url('../fonts/times.ttf');
}

.davat {
    font-family: davat;
}

.vazir {
    font-family: vazir;
}

.taha-r {
    font-family: taha-r;
}

.taha-b {
    font-family: taha-b;
}

.btitrb {
    font-family: btitrb;
}

.iransans {
    font-family: iransans;
}

.bmitrab {
    font-family: bmitrab;
}

.bmitra-n {
    font-family: bmitra;
    font-weight: 600;
}

.bmitra {
    font-family: bmitra;
}

.bnazanin {
    font-family: BNazanin;
}

.calibri {
    font-family: calibri;
}

.times {
    font-family: times;
}

.bold {
    font-weight: bold;
}

.dir-ltr {
    direction: ltr !important;
}

.dir-rtl {
    direction: rtl !important;
}

.text-justify {
    text-align: justify !important;
}

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

.card.hover-shadow:hover {
    box-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    transition: all 0.2s ease-in-out;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-circle-radio {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.btn-check:checked+.icon-circle-radio {
    border-color: #000;
    /* Highlight selected */
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    /* Optional shadow */
}

.card .card-body {
    transition: background-color 0.2s ease;
}

html {
    min-height: 100%;
    position: relative;
}
body {
    padding-top: 50px;
    padding-bottom: 30px;
    background: var(--bg-main);
    color: var(--text-main);
    margin-bottom: 60px;
    /* Disable user text selection */
    /* -webkit-user-select: none; */
    /* Safari */
    /* -moz-user-select: none; */
    /* Firefox */
    /* -ms-user-select: none; */
    /* IE10+/Edge */
    /* user-select: none; */
    /* Standard */
}

.card,
.bank-card,
.bank-navbar,
.bank-footer {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.table {
    color: var(--text-main);
}

.table thead {
    background: var(--bg-soft);
    color: var(--text-main);
}

.table td,
.table th {
    border-color: var(--border-color);
}

.table {
    color: var(--text-main);
}

.table thead {
    background: var(--bg-soft);
    color: var(--text-main);
}

.table td,
.table th {
    border-color: var(--border-color);
}

.btn-theme-toggle {
    border: 1px solid var(--border-color);
    background: var(--bg-soft);
    color: var(--text-main);
}

.btn-theme-toggle:hover {
    background: var(--primary);
    color: #fff;
}

@media print {

    :root,
    [data-theme="dark"] {
        --bg-main: #ffffff;
        --bg-surface: #ffffff;
        --text-main: #000000;
        --border-color: #000000;
        --shadow-soft: none;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .bank-navbar,
    .bank-footer,
    #themeToggle {
        display: none !important;
    }
}

.form-signin {
    max-width: 330px;
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.text-underline {
    text-decoration: underline !important;
}

/* Sticky Footer */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}
.bank-footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    font-size: 13px;
    color: #6b7280;
}
.footer-brand {
    font-weight: 600;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-brand i {
    color: #2563eb;
}
.footer-text {
    margin-right: 6px;
}
.footer-divider {
    margin: 0 6px;
    color: #d1d5db;
}
.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}
.footer-link:hover {
    color: #2563eb;
}
/* End of Sticky Footer*/

/* Change Default Font in DatePicker */
.mds-bs-persian-datetime-picker-popover {
    font-family: vazir !important;
}

/* Bootstrap-Select */
div.filter-option-inner-inner {
    text-align: right !important;
}
a.disabled.active.selected span.bs-ok-default.check-mark {
    display: none !important;
}

.hide {
    display: none !important;
}

/* Select2 */
.select2 {
    width: 100% !important;
}

.select2-results {
    background: #f8f9fa !important;
}

.select2-selection {
    background: #f8f9fa !important;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    min-width: 60px;
}
/* End of Select2 */

.btn-xs {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .75rem;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline-block !important;
}

.d-hide-inline,
.d-hide-block {
    display: none;
}

/* Print Queries */
@media print {

    .not_in_print, .alert {
        display: none !important;
    }

    .d-hide-inline {
        display: inline !important;
    }

    .d-hide-block {
        display: block !important;
    }

    body {
        padding: 0 0;
    }

    .table-bordered {
        border: 1px solid #000;
    }

    ::-webkit-scrollbar,
    ::-webkit-scrollbar-track,
    ::-webkit-scrollbar-thumb {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }
}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
    width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    background-color: rgba(66, 69, 73, 0.4);
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary); /* linear-gradient(to bottom right, rgb(66, 69, 73) 0%, #2a2e32 100%); */
    transition: 1s;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
/* End of Scrollbar */

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding-left: 0;
}
.pagination li {
    margin: 0 4px;
}
.pagination li a,
.pagination li strong {
    display: block;
    padding: 6px 12px;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}
.pagination li strong {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
.pagination li.active a {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
/* End of Pagination */

/* Loading */
#loadingScreen {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #0b78d1;
}
#loadingScreen .menu-sample {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-surface);/* linear-gradient(to bottom right, #79bff8 0%, #0b78d1 100%); */
}
.loadingScreenDisapear {
    animation: vanish .3s forwards;
}
@keyframes vanish {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

input.form-control,
select.form-select,
textarea.form-control, a.btn, button.btn {
    box-shadow: var(--bs-box-shadow-sm);
}
.form-control:focus, .form-select:focus {
    border-color: #333;
    outline: 2px solid rgba(66, 69, 73, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(66, 69, 73, 0.25);
    transition: border-color 0.3s ease, outline 0.3s ease;
}

/* Pool Boxes & Bath Rooms Style */
div.pool-boxes .card, div.bath-rooms .card {
    transition: 0.1s ease-in-out;
}
div.pool-boxes .card:hover, div.bath-rooms .card:hover, .pool-card.selected .card:hover, .bath-card.selected .card:hover {
    transform: translateY(-5px);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
div.pool-boxes .card:active, div.bath-rooms .card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-in-out;
}
.pool-card.selected .card, .bath-card.selected .card {
    outline: 4px solid #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}
.pool-card.selected, .bath-card.selected {
    position: relative;
}
.pool-card.selected::after, .bath-card.selected::after {
    content: "✔ انتخاب شد";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.4);
    /* Bootstrap blue with opacity */
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 0.375rem;
    /* match Bootstrap card radius */
    pointer-events: none;
    z-index: 2;
}
/* End of Pool Boxes & Bath Rooms Style */

.swal2-container {
    font-family: vazir, sans-serif !important;
}

/* Used in reports hub */
.hover-card:hover {
    transform: translateY(-3px);
    transition: 0.2s ease-in-out;
}