@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;
}
.text-gold {
    color: #f4c430 !important;
}

html {
    scroll-behavior: smooth;
    /* smooth scroll globally */
    min-height: 100%;
    position: relative;
}
body {
    padding-top: 70px;
    padding-bottom: 30px;
    /* background: linear-gradient(to bottom right, #79bff8 0%, #0b78d1 100%); */
    margin-bottom: 60px;
}

.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%;
    /* Set the fixed height of the footer here */
    height: 52px;
    color: #fff !important;
    background: linear-gradient(135deg, #0a2472, #06163a) #495057;
}

footer p {
    direction: ltr !important;
    font-family: calibri;
    margin: 16px 0;
}
/* 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;
    }

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

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

/* Scrollbar */
/* width */
::-webkit-scrollbar {
    width: 14px;
}
/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #0a2472;
    background-color: rgba(66, 69, 73, 0.4);
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0a2472, #06163a);
    transition: 1s;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #2a2e32;
}
/* 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: #fff;
    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: 60px;
    background: linear-gradient(135deg, #0a2472, #06163a);
}
.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;
    /* box-shadow: var(--bs-box-shadow); */
}

/* Dashboard Date & Time Header */
.dashboard-datetime {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0a2472, #06163a);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}
.dashboard-date {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.dashboard-time {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-time {
        font-size: 0.9rem;
    }
    .dashboard-date {
        font-size: 0.9rem;
    }
}
@media (max-width: 350px) {
    .dashboard-datetime {
        flex-direction: column;
        gap: 0.3rem;
    }
}
/* End of Dashboard Date & Time Header */

/* Exchange Dashboard Scrollbar */
.exchange-dashboard {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.rate-card {
    position: relative;
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
    border-radius: 0.6rem;
    color: #fff;
    font-size: 0.9rem;
    overflow: hidden;
}

/* Background flag + brand gradient overlay */
.rate-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 36, 114, 0.85), rgba(6, 22, 58, 0.88)),
        url('') center/cover no-repeat;
    z-index: 0;
}

/* Each card has its own flag using inline style */
.rate-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.currency-header {
    font-weight: 600;
    font-size: 1rem;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rate-item:last-child {
    border-bottom: none;
}

/* Scrollbar styling */
.exchange-dashboard::-webkit-scrollbar {
    height: 6px;
}

.exchange-dashboard::-webkit-scrollbar-track {
    border-radius: 3px;
}

.exchange-dashboard::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
/* End of Exchange Dashboard Scrollbar */

/* Glassmorphism Card */
.glass-card {
    background: rgba(10, 36, 114, 0.85);
    /* semi-transparent dark blue */
    border-radius: 0.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    /* glass effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    color: #fff;
    width: 200px;
    margin: 0.4rem 0;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.glass-card .card-body {
    padding: 1rem;
    text-align: center;
}

.glass-card .currency-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.glass-card .rate-item strong {
    font-size: 1.4rem;
    font-weight: 700;
}
/* End of Glassmorphism Card */

/* Bottom Quick Links */
.quick-links {
    padding: 0.9rem 0;
    background: linear-gradient(90deg, #0a2472, #06163a);
    border-radius: 0.5rem;
    text-align: center;
}

.quick-btn {
    background: linear-gradient(45deg, #FFD700, #FFC107);
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    background-size: 200% 200%;
}

.quick-btn i {
    font-size: 1rem;
}

/* Hover effect: subtle animated gradient shift */
.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    color: #000;
    background-position: 100% 0;
}

/* Smooth gradient animation */
.quick-btn {
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

@media (max-width: 768px) {
    .quick-links {
        padding: 1.6rem;
    }

    .quick-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}
/* End of Bottom Quick Links */