* {
    font-family: 'Vazirmatn', serif !important;
}

html,
body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #ffffff;
}

.unselectable {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Standard */
}

@media print {
    .side-bar {
        display: none !important;
    }

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

    .panel-field-selector {
        border: none !important;
    }

    .print table {
        width: 100% !important;
    }
}

@media (max-width: 769px) {
    .rank-border {
        border-top: 3px solid #c7c8c9;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .scrollable-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .side-bar {
        position: fixed;
        display: none;
        top: 0;
        left: 0;
        z-index: 100;
        width: 100% !important;
        transition: all ease 1s;
    }

    .side-bar.active {
        display: flex;
        transition: all ease 1s;
    }

    .profile-details {
        flex-direction: row !important;
        padding: 0.75rem;
        text-align: right !important;
    }

    .profile-details img {
        width: 4rem;
        margin: 0 1rem !important;
    }

    .user-info h2 {
        padding-top: 2rem !important;
    }

    .profile-details i {
        font-size: 3rem;
        text-align: left;
        padding: .5rem !important;
    }

    .score-text {
        top: -70px !important;
    }

    .score-text p {
        font-size: 1.25rem !important;
    }

    .divider {
        border-top: 2px solid #E8E8E8;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .panel-result .spacer {
        padding: 0.5rem !important;
    }

    .panel-index {
        border: none !important;
    }

    .panel-index .row {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .panel-table table {
        font-size: 0.7rem;
    }

    .panel-table th {
        font-size: 0.75rem !important;
    }

    .panel-table .btn {
        font-size: 0.6rem;
        --bs-btn-padding-y: 0.3rem;
        --bs-btn-padding-x: 0.3rem;
    }

    .pagination p {
        font-size: 0.9rem !important;
    }

    .btn-pagination {
        --bs-btn-padding-y: 0.25rem;
        --bs-btn-padding-x: 0.5rem;
    }
}

@media (min-width: 769px) {
    .input-border {
        border-left: 3px solid #c7c8c9;
    }

    .side-bar {
        display: flex;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .hide-on-desktop {
        display: none !important;
    }

    .head-button:hover {
        transition: all 0.5s;
        background: white;
        color: #002B50;
    }

    .head-button:hover img {
        transition: all 0.5s;
        filter: none;
    }

    .divider {
        border-right: 2px solid #E8E8E8;
        margin-bottom: 1rem;
    }

    .coupon {
        width: 35% !important;
        display: block;
        margin: 0 auto;
    }
}

.side-bar {
    background: #002B50;
    color: white;
    width: 20rem;
}

.profile-details {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.profile-details h2,
.profile-details p {
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-details img {
    display: block;
    margin: 2rem 7rem;

}

.side-bar p {
    font-size: 1.2rem;
}

.side-bar ul {
    list-style: none;
}

.head-button {
    cursor: pointer;
    background: transparent;
    color: white;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    margin: 1rem 2rem 0rem 2rem;
    display: block;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.6s ease;
}

.head-button img {
    margin: 0 0.5rem;
    width: 32px;
    filter: invert(100%) brightness(200%);
}

.head-button.active {
    transition: all 0.5s;
    background: white;
    color: #002B50;
}

.head-button.active img {
    transition: all 0.5s;
    filter: none;
}

.collapsable-menu a {
    border: 3px solid white;
    color: white;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    margin: 0.5rem 2.5rem;
    display: block;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.6s ease;
}

.collapsable-menu a:hover {
    transition: all 0.6s ease;
    transform: scale(0.95);
}

.logout {
    padding: 1.5rem;
}

.logout a {
    border: 3px solid white;
    color: white;
    text-align: center;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    width: 100%;
    font-size: larger;
    border-radius: 10px;
    transition: all 0.6s ease;
}

.logout a:hover {
    transition: all 0.6s ease;
    transform: scale(0.95);
    background: white;
    color: #002B50;
}

.panel-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.panel-content-header {
    height: 4rem;
}

.panel-content-header i.bi-list {
    font-size: 2.5rem;
    cursor: pointer;
    color: #002B50;
}

.panel-content-header img {
    max-width: 100px;
}

.panel {
    padding: 1rem 0 0 0;
    border: 2px solid #DDDDDD;
    border-radius: 10px;
}

.panel-table {
    text-align: center;
    flex: 1 1 auto !important;
}

.panel-table table {
    margin-bottom: 0;
}

.panel-table thead th {
    font-size: 1.1rem;
    padding-bottom: 1rem;
}

.panel-table tbody tr {
    border-bottom: 1px solid #DDDDDD;
    vertical-align: baseline;
}

.panel-table tbody tr:last-of-type {
    border-bottom: none;
}

.panel-table th:last-of-type,
.panel-table td:last-of-type {
    display: inline-block;
}

.panel-table tbody td,
.panel-table tbody th {
    padding: 0.5rem 0 !important;
}

.btn-green {
    --bs-btn-color: #1F9254;
    --bs-btn-bg: #EBF9F1;
    --bs-btn-border-color: #EBF9F1;
    --bs-btn-hover-color: #1F9254;
    --bs-btn-hover-bg: #EBF9F1;
    --bs-btn-hover-border-color: #1F9254;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #1F9254;
    --bs-btn-active-bg: #EBF9F1;
    --bs-btn-active-border-color: #EBF9F1;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    transition: all 0.6s ease;
    border-radius: 10px;
    border-width: 2px;
}

.btn-green:hover {
    transition: all 0.6s ease;
    transform: scale(0.95);
}

.btn-pagination {
    --bs-btn-color: #fff;
    --bs-btn-bg: #002B50;
    --bs-btn-border-color: #002B50;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #002B50;
    --bs-btn-hover-border-color: #002B50;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #002B50;
    --bs-btn-active-bg: #002B50;
    --bs-btn-active-border-color: #002B50;
    margin: 1rem 0.75rem;
}

.panel-input {
    padding: 1rem;
}

.panel-input h5 {
    text-align: right;
    margin: 1rem 0;
}

.panel-form-input {
    padding: 1rem 2rem;
}

.panel-form-input input:not([type="checkbox"]) {
    background: #ffffff !important;
}

.panel-form-input input {
    color: #002B50 !important;
    font-weight: bold;
    font-size: small;
    padding: 0.5rem;
    --bs-border-color: #002B50;
    --bs-border-width: 0.25rem;
    --bs-border-radius: 10px;
}


.panel-form-input input:focus {
    border-color: #002B50;
    box-shadow: 0 0 0 .25rem rgba(0, 43, 80, 0.2);
}

.panel-form-input input::placeholder {
    color: #959595 !important;
    font-weight: bold;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    /* Replace 'white' with your desired color */
    -webkit-text-fill-color: black !important;
    /* Replace 'black' with your desired text color */
    background-clip: content-box !important;
    transition: background-color 5000s ease-in-out 0s;
    /
}

.panel-form-input label {
    color: #002B50;
    font-weight: bold;
    background: #ffffff;
    position: relative;
    border-radius: 10px;
    right: 15px;
    top: 12px;
    padding: 0 0.5rem 0 0.5rem;
}

.panel-form-input select {
    color: #002B50 !important;
    font-weight: bold;
    font-size: small;
    padding: 0.5rem 3rem;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    --bs-border-color: #002B50;
    --bs-border-width: 0.25rem;
    --bs-border-radius: 10px;
}

.panel-form-input button,
.panel-form-input a.btn {
    display: block;
    margin: 0 auto;
    background: #001B32;
    color: #ffffff;
    font-size: 1.25rem;
    padding: 0.5rem 1.75rem;
    border-radius: 10px;
    border: 3px solid #001B32;
    transition: all 0.6s ease;
}

.panel-form-input button:hover,
.panel-form-input a.btn:hover {
    transition: all 0.6s ease;
    transform: scale(0.95);
}

.panel-result h4 {
    color: #001B32;
}

.chart-container {
    padding: 1.5rem 1rem;
    width: 60vh;
}

.chart-div {
    margin-bottom: -100px;
}

.hide-rank .chart-container {
    width: 80vh;
}

.hide-rank .chart-div {
    margin-bottom: -50px;
}

.chart-container p {
    font-weight: bold;
    font-size: 1.4rem;
}

.score-text {
    position: relative;
    top: -100px;
}

.panel-result table {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.3rem;
}

.panel-result thead {
    font-weight: bold;
    color: #001B32;
}

.panel-result tbody tr {
    padding-top: 1rem;
}

.panel-result .least {
    color: #CD6200;
}

.panel-result .most {
    color: #1F9254;
}

.panel-result tbody tr:last-of-type {
    font-weight: bold;
}

.panel-result .spacer {
    padding: 1.5rem;
}

.login,
.register {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background: #FFFFFF;
    color: #002B50;
}

.login h3,
.register h3 {
    text-align: center;
}

.login .panel-form-input,
.register .panel-form-input {
    display: block;
    margin: 0 auto;
}

.login .panel-form-input button,
.register .panel-form-input button {
    font-size: 1.05rem;
    margin-top: 1rem;
}

.login-register-body {
    background-image: url("../images/logo-transparent.svg");
    background-color: rgba(0, 0, 0, 0.3);
    background-blend-mode: multiply;
    background-size: 6vw;
}

.errors {
    margin: 0;
    color: rgb(var(--bs-danger-rgb)) !important;
}

.errors li {
    display: none;
}

.errors li:first-of-type {
    margin-top: 1rem;
}

.login a,
.register a {
    color: #002B50;
    font-weight: bold;
    text-decoration: none;
    display: block;
}

.login a:last-of-type {
    padding-top: 0.5rem;
}

.panel-index {
    padding: 0.5rem 0.25rem;
    flex: 1 1 auto !important;
}

.title-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    color: #FFFFFF;
    background: #002B50;
    border: 2px solid #002B50;
    padding: 0.25rem 0.5rem;
    margin: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.65rem;
    font-weight: bold;
    transition: all 0.6s ease;
}

.title-button i {
    vertical-align: middle;
}

.title-button:hover {
    transition: all 0.6s ease;
    background: #FFFFFF;
    color: #002B50;
}

.item {
    border: 3px solid #002B50;
    background: #FFFFFF;
    color: #002B50;
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    border-radius: 15px;
    margin-top: 0.5rem;
}

.item h5 {
    padding-bottom: 0.75rem;
}

.item table {
    --bs-table-bg: #FFFFFF;
    --bs-table-color: #002B50;
    font-size: 0.9rem;
}

.item thead tr th {
    font-size: 0.8rem;
    border-color: #002B50;
}

.item tbody tr td {
    font-weight: bold;
    border-bottom: none;
}

.item .btn,
.btn-default {
    --bs-btn-color: #fff;
    --bs-btn-bg: #002B50;
    --bs-btn-border-color: #002B50;
    --bs-btn-hover-color: #002B50;
    --bs-btn-hover-bg: #FFFFFF;
    --bs-btn-hover-border-color: #002B50;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #002B50;
    --bs-btn-active-bg: #002B50;
    --bs-btn-active-border-color: #002B50;
    --bs-btn-border-width: 3px;
    --bs-nav-pills-link-active-bg: #002B50;
    --bs-nav-link-color: #002B50;
    padding: 0.25rem 1rem;
    transition: all ease 0.6s;

}

.panel-form-input.range label {
    color: #002B50;
    font-weight: bold;
    position: unset !important;

}

.panel-form-input.range input[type="range"]:focus {
    box-shadow: none;
}

input[type="range"]::-webkit-slider-thumb {
    background: #002B50 !important;

}

input[type="range"]::-moz-range-thumb {
    background: #002B50 !important;
}

.panel-form-input.range input {
    background: #ffffff !important;
    color: #002B50 !important;
    text-align: center;
    width: 3rem;
    padding: 0.5rem;
    --bs-border-color: #002B50;
    --bs-border-width: 0.15rem;
    --bs-border-radius: 10px;
}

.coupon {
    display: flex;
    align-items: self-end;
    padding: 1rem 2rem;
}

.coupon .panel-form-input {
    padding: 0 1rem !important;
}

.coupon .btn-green {
    height: fit-content;
}

.btn-show {
    background: white;
    color: #002B50;
    border: 3px solid #002B50;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    font-size: larger;
    border-radius: 10px;
    transition: all 0.6s ease;
}

.btn-show:hover {
    transition: all 0.6s ease;
    color: white;
    background: #002B50;
}


.item-field-selector {
    border: 3px solid #002B50;
    background: #FFFFFF;
    color: #002B50;
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    border-radius: 15px;
    margin-top: 0.5rem;
}

.item-single {
    background: unset;
    border: none;
}

.table td {
    border-bottom: none !important;
}

.rank-table th:last-of-type,
.rank-table td:last-of-type {
    display: table-cell !important;
}