:root {
    --main-color: #1ea69a;
    --second-color: #ee7224;
    --color-amber-600: #e17100;
    --color-orange-500: #ff6900;
    --color-orange-600: #f54a00;
    --color-yellow-500: #f0b100;
    --color-yellow-600: #d08700;
    --color-gray-800: #1e2939;
    --color-gray-700: #364153;
    --color-gray-600: #4a5565;
    --color-gray-500: #e0e4eb;
    --color-gray-400: #99a1af;
    --color-gray-50: #fbf9fa;
    --color-blue-50: #eff6ff;
    --color-blue-500: #2b7fff;
    --color-blue-600: #155dfc;
    --color-blue-700: #1447e6;
    --border-blue-200: #bedbff;
    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-500: #00c951;
    --color-green-600: #00a63e;
    --color-green-700: #008236;
    --color-emerald-600: #096;
    --color-teal-50: #f0fdfa;
    --color-teal-500: #00bba7;
    --color-teal-600: #009689;
    --color-teal-700: #00786f;
    --color-teal-800: #005f5a;
    --border-green-200: #b9f8cf;
    --color-emerald-50: #ecfdf5;
    --color-abmer-50: #fffbeb;
    --color-red-50: #fef2f2;
    --color-red-100: #ffe2e2;
    --border-red-200: #ffc9c9;
    --color-red-500: #fb2c36;
    --color-red-600: #e7000b;
    --color-red-700: #c10007;
    --color-red-800: #9f0712;
    --color-purple-500: #ad46ff;
    --color-purple-600: #9810fa;
    --color-purple-50: #faf5ff;
    --color-input-background: #f5f5f5;
}

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

.bg-main-color {
    background-color: var(--main-color);
}

.text-second-color {
    color: var(--second-color);
}

.bg-second-color {
    background-color: var(--second-color);
}

.text-gradient {
    background: linear-gradient(to right, #1e2939, #4a505a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-icon-gradient {
    background-image: linear-gradient(135deg,
            #fef2f2 0%,
            #f9f9f7 50%,
            #f0fdfa 100%);
}

.text-orange-600 {
    color: var(--color-orange-600);
}

.bg-teal-gradient {
    background-image: linear-gradient(to right, #f0fdfa, #cbfbf1);
    border: 1px solid #96f7e4;
}

.bg-red-gradient {
    background-image: linear-gradient(to right, #fef2f2, #ffe2e2);
    border: 1px solid var(--border-red-200);
}

.bg-red-500 {
    background-color: var(--color-red-500);
}

.text-gray-800 {
    color: var(--color-gray-800);
}

.text-gray-700 {
    color: var(--color-gray-700);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.text-green-700 {
    color: var(--color-green-700);
}

.text-green-600 {
    color: var(--color-green-600);
}

.bg-teal-50 {
    background-color: var(--color-teal-50);
}

.bg-green-100 {
    background-color: var(--color-green-100);
}

.bg-green-50 {
    background-color: var(--color-green-50);
}

.border-green-200 {
    border: 1px solid var(--border-green-200);
}

.text-emerald-600 {
    color: var(--color-emerald-600);
}

.bg-emerald-50 {
    background-color: var(--color-emerald-50);
}

.text-blue-600 {
    color: var(--color-blue-600);
}

.text-blue-700 {
    color: var(--color-blue-700);
}

.bg-blue-50 {
    background-color: var(--color-blue-50);
}

.border-blue-200 {
    border: 1px solid var(--border-blue-200);
}

.text-orange-600 {
    color: var(--color-orange-600);
}

.text-purple-600 {
    color: var(--color-purple-600);
}

.bg-purple-50 {
    background-color: var(--color-purple-50);
}

.text-teal-600 {
    color: var(--color-teal-600);
}

.text-teal-700 {
    color: var(--color-teal-700);
}

.text-teal-800 {
    color: var(--color-teal-800);
}

.text-red-600 {
    color: var(--color-red-600);
}

.bg-red-50 {
    background-color: var(--color-red-50);
}

.text-red-700 {
    color: var(--color-red-700);
}

.text-red-800 {
    color: var(--color-red-800);
}

.bg-gray-500 {
    background-color: var(--color-gray-500);
}

.lead {
    font-size: 16px;
}

.btn-outline {
    color: var(--second-color);
    border: 1px solid var(--second-color);

    &:hover,
    &:active,
    &:focus-visible {
        color: #fff !important;
        border: 1px solid var(--second-color) !important;
        background-color: var(--second-color) !important;
    }
}

.btn-solid-main {
    background: linear-gradient(90deg, var(--main-color) 60%, #049391 90%);
    box-shadow: 0 4px 12px rgba(0, 201, 173, 0.3);
    color: #fff !important;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;

    &.dot-red {
        background-color: #fb2c36;
    }

    &.dot-green {
        background-color: var(--color-teal-500);
    }
}

img {
    width: 100%;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

.merged-logo {
    background: linear-gradient(90deg, #53b4aa29, #79dad24d);
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
    width: 182px;
    margin-inline: auto;
    transition: 0.4s all ease;

    &:hover {
        transform: scale(1.03);
        box-shadow: 2px 0 16px rgba(45, 50, 80, 0.08);
    }
}

@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap");

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--color-gray-50);
    color: var(--color-gray-800);
    min-height: 100vh;
    overflow-x: hidden;
}

.dropify-wrapper *,
.apexcharts-canvas * {
    font-family: "Vazirmatn", sans-serif !important;
}

.asideToggler {
    border: none;
    background-color: transparent;
}

aside {
    display: flex;
    flex-direction: column;
    width: 250px;
    background: #fff;
    height: 100vh;
    overflow-y: auto;
    padding: 1.0625rem 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
    box-shadow: -2px 0 16px rgba(45, 50, 80, 0.08);
    transition: all 0.3s ease-in-out;

    @media screen and (max-width: 991px) {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        z-index: 9999;

        &.active {
            transform: translateX(0);
        }
    }

    .side-top-logo {
        .side-top-logo-container {
            width: 30px;
            box-shadow: 0 1px 2px #00000046;
            border-radius: 8px;

            img {
                padding: 6px;
            }
        }
    }

    .side-bottom-logo {
        padding: 20px;

        img {
            max-height: 80px;
            object-fit: contain;
        }
    }

    nav {
        border-top: 1px solid #f6f3f4;
        border-bottom: 1px solid #f6f3f4;
        padding-top: 25px;
        flex: 1;

        a {
            display: flex;
            align-items: center;
            color: #39465f;
            padding: 8px 1rem;
            margin-bottom: 10px;
            margin-inline: 15px;
            border-radius: 8px;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 14px;
            font-weight: 500;
            background: transparent;
            gap: 8px;

            i,
            img {
                width: 20px;
                aspect-ratio: 1;
                display: flex !important;
                align-items: center;
                justify-content: center;
            }

            &:hover {
                background-color: #f6f3f4;
                box-shadow: 0 1px 2px #00000046;
            }

            &.active {
                background: linear-gradient(90deg,
                        var(--main-color) 60%,
                        #049391 90%);
                box-shadow: 0 4px 12px rgba(0, 201, 173, 0.3);
                color: #fff !important;

                img {
                    filter: invert(1);
                }
            }
        }

        .sub-menu {
            padding: 0;
            margin: 0;
            list-style: none;
            margin-bottom: 16px;

            a {
                padding: 8px;
                margin-bottom: 4px;
            }
        }
    }
}

.offcanvas.offcanvas-start {
    width: 330px;
    z-index: 100000 !important;
}

.close-sidebar {
    background-color: var(--main-color);
}

.navbar-toggler {
    color: var(--main-color);
}

main {
    width: calc(100% - 250px);
    min-height: 100dvh;
    margin-inline-start: auto;
    overflow-x: hidden;
    padding: 0 20px;

    @media screen and (max-width: 991px) {
        width: 100%;
        padding: 0 8px;
        padding-top: 24px;
    }
}

.status-pending {
    background-color: #f7ffd0;
    color: #666601;
}

.status-complete {
    background-color: #d0e7ff;
    color: #0056b3;
}

.status-active {
    background-color: #d9fdd3;
    color: #0f8b28;
}

.card {
    position: relative;
    border-radius: 14px;
    border: none;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;

    &-img-bg {
        position: absolute;
        top: 0;
        left: 0;
        transform: scaleX(-1);
    }
}

.stat-cards {
    .card {
        min-height: 240px;

        .card-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            box-shadow: 0 1px 2px #00000046;
        }

        &.card1 {
            .card-icon {
                background: var(--color-blue-50);
            }

            svg {
                color: var(--color-blue-600);
            }
        }

        &.card2 {
            .card-icon {
                background: var(--color-emerald-50);
            }

            svg {
                color: var(--color-emerald-600);
            }
        }

        &.card3 {
            .card-icon {
                background-color: var(--color-abmer-50);
            }

            svg {
                color: var(--color-amber-600);
            }
        }

        &.card4 {
            .card-icon {
                background-color: var(--color-red-50);
            }

            svg {
                color: var(--color-red-600);
            }
        }

        h2 {
            color: #ee7224;
            font-weight: bold;
            font-size: 2rem;
            margin-bottom: 0;
        }
    }
}

.card-status {
    width: 80px;
    height: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    .small {
        font-size: 12px;
        font-weight: 500;
    }

    &.active-status {
        background-color: rgba(220, 252, 231, 0.8);

        svg {
            color: var(--color-green-700) !important;
        }

        .small {
            color: var(--color-green-700);
        }
    }

    &.issues-status {
        background-color: var(--color-red-100);
        border: 1px solid var(--border-red-200);

        svg,
        span {
            color: var(--color-red-700) !important;
        }

        svg {
            rotate: 180deg;
        }
    }
}

#home {
    .card h5 {
        font-size: 1.15rem;
    }
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.card-sub {
    font-size: 0.85rem;
    color: #888;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: bold;
}

/* ==================evaluation.html==================== */
#evaluation {
    .col-md-3 {
        width: 20%;
    }

    .card.custom-card {
        overflow: hidden;
        position: relative;
        padding-top: 10px;

        &::before {
            content: "";
            position: absolute;
            top: -2px;
            left: 0;
            height: 5px;
            width: 100%;
            border-radius: 3px;
        }
    }

    .card1.custom-card::before {
        background: linear-gradient(to right,
                var(--color-blue-500),
                var(--color-blue-600));
    }

    .card2.custom-card::before {
        background: linear-gradient(to right,
                var(--color-teal-500),
                var(--color-teal-600));
    }

    .card3.custom-card::before {
        background: linear-gradient(to right,
                var(--color-green-500),
                var(--color-green-600));
    }

    .card4.custom-card::before {
        background: linear-gradient(to right,
                var(--color-purple-500),
                var(--color-purple-600));
    }

    .card5.custom-card::before {
        background: linear-gradient(to right,
                var(--color-red-500),
                var(--color-red-600));
    }
}

/* ==================employees.html==================== */
#drivers-table {
    th.sorting {
        text-align: right;
    }

    &_filter {
        label {
            display: none;
        }
    }
}

.card-body {

    input,
    select {
        border: 1px solid transparent;
        border-radius: 6px;
        padding: 0.25rem 1rem;
        background-color: var(--color-input-background);

        &::placeholder {
            font-size: 13px;
        }
    }
}

.dropdown-toggle {
    background-color: inherit;
    border: 1px solid #d3d3d3;
    padding: 5px 8px;
    border-radius: 8px;

    i {
        color: #666666;
    }

    &::after {
        display: none;
    }
}

.dropdown-menu {
    overflow-y: scroll;
    height: 220px;
}

.table>thead {
    vertical-align: middle;
}

.form-control {
    direction: rtl;
}

input[type="search"]:focus-within {
    outline: 0;
}

.table-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dataTables_wrapper {

    /* .dataTables_length,
    .dataTables_info {
        display: none;
    } */

    .dataTables_paginate {
        padding-top: 20px;

        .paginate_button {
            /* padding: 0.2em 1em; */
            margin-left: 2px;
            /* background-color: #1ea69a !important; */
            border: none;
            color: #fff !important;
            border-radius: 6px;
            cursor: default;

            &.next,
            &.previous {
                cursor: pointer !important;
            }

            &.disabled,
            &.disabled:hover {
                color: #fff !important;
            }

            &.current,
            &.current:hover,
            &.current:focus-within {
                color: #fff !important;
                border: none;
                box-shadow: none;
            }
        }
    }

    .dataTables_filter {
        margin-bottom: 15px;

        input {
            margin-right: 5px;
            border-radius: 8px;
            border: 1px solid #d6d6d6;
            padding: 4px 8px;
        }
    }

    .dataTables_length select {
        border-radius: 5px;
        padding: 4px 8px;
    }
}

.add-user-button {
    background-color: var(--color-teal-500);
    color: #fff;
    padding-inline: 12px;
    padding-block: 4px;
    font-size: 0.875rem;
    font-weight: 500;

    &:hover,
    &:active,
    &:focus-within {
        background-color: var(--color-teal-600) !important;
        color: #fff;
    }
}

div.dt-buttons {
    >.dt-button {
        display: none;
    }

    >.dt-button i {
        color: #666666;
    }
}

@media (max-width: 991px) {
    .nav-logo {
        margin-bottom: 0;
        height: 60px;

        img {
            height: 100%;
            width: auto;
        }
    }

    .content-left-side {
        width: 100%;
    }

    .stat-cards {
        display: flex;
        flex-wrap: wrap;

        .card {
            min-width: 200px;
            align-items: center;
        }
    }
}

@media screen and (max-width: 640px) {
    div.dt-buttons {
        float: left !important;
    }

    .card-header {
        flex-direction: column;
    }
}

table.dataTable.no-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

::placeholder {
    font-size: 13px;
}

.form-control,
.form-select,
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    font-size: 13px;
    color: #333;
    border-radius: 6px;
    padding: 0.25rem 1rem;
    min-height: 48px;
    width: 100%;
    outline: none;

    &:focus,
    &:focus-visible {
        /* border-color: var(--main-color); */
        box-shadow: 0 0 0 0.2rem rgba(30, 166, 154, 0.25);
    }
}

label.form-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* ==================observations.html==================== */
#observations {
    .card {
        &.card1 {
            background: linear-gradient(to right,
                    var(--color-blue-500),
                    var(--color-blue-600));
        }

        &.card2 {
            background: linear-gradient(to right,
                    var(--color-orange-500),
                    var(--color-orange-600));
        }

        &.card3 {
            background: linear-gradient(to right,
                    var(--color-yellow-500),
                    var(--color-yellow-600));
        }

        &.card4 {
            background: linear-gradient(to right,
                    var(--color-green-500),
                    var(--color-green-600));
        }
    }

    table tr:last-child td {
        border-bottom: none;
    }
}

/* .col-md-2 {
      width: 20%;
    } */
/* ==================login.html==================== */
.login {
    padding: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    .merged-logo {
        margin-inline: auto;
        background: transparent;

        img {
            max-width: 200px;
        }

        &:hover {
            box-shadow: none;
        }
    }
}

.login-card {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.welcome-section {
    position: relative;
    /* background: linear-gradient(90deg, #53b4aa29, #79dad24d); */
    background: url("./../assets/login.jpg");
    background-size: cover;
    background-position: 94%;
    flex: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;

    .merged-logo img {
        max-width: 160px;
        margin-bottom: 1.5rem;
    }

    h4 {
        font-weight: 700;
    }

    p {
        font-size: 0.95rem;
        opacity: 0.9;
    }
}

#loginForm {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.form-section {
    flex: 1;
    padding: 3rem 2rem;
    background: white;

    .form-control {
        border-radius: 8px;
        padding: 12px 16px;
        border: 1px solid #ddd;
        transition: all 0.3s;

        &:focus {
            /* border-color: $primary-color; */
            box-shadow: 0 0 0 0.25rem rgba(83, 180, 170, 0.25);
        }
    }

    .password-toggle {
        position: absolute;
        top: 43px;
        left: 16px;
        cursor: pointer;
        color: #6c757d;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        display: none;
    }

    .form-section {
        flex: 1 100%;
    }
}

.btn.btn-primary {
    background-color: var(--main-color);
    border-color: var(--main-color);

    &:hover {
        background-color: var(--main-color);
        border-color: var(--main-color);
    }
}

.select2-search__field {
    min-height: unset;
}

.form-select,
.form-control {
    background-color: var(--color-input-background);
    border-radius: 8px !important;
}

.dropify-wrapper,
.select2-container--default .select2-selection--multiple {
    background-color: var(--color-input-background);
    border: var(--bs-border-width) solid var(--bs-border-color);
    min-height: 48px;
    border-radius: 8px !important;
}

label {
    font-weight: bold !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    color: #fff;
    border-radius: 100px;
    padding: 2px 8px;
    padding-inline-end: 2px;
    gap: 4px;
    flex-direction: row-reverse;
    border: none !important;

    button {
        position: unset;
        left: unset;
        top: unset;
        color: #fff;
        border: none !important;
        aspect-ratio: 1;
        height: 20px;
        border-radius: 20px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.select2-container--open .select2-dropdown {
    left: -15px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--main-color);
}

.select2-container--default .select2-search--inline .select2-search__field {
    box-shadow: none !important;
}

.sideProfile {
    .dropdownBtn {
        display: flex;
        align-items: center;
        background: #0493901a;
        border: none;
        outline: none;
        padding: 4px;
        border-radius: 100px;
        text-align: start;
        gap: 8px;
        width: 100%;

        img {
            width: 48px;
            aspect-ratio: 1;
        }
    }

    .dropdown-menu {
        overflow: unset;
        height: unset;
        width: 100%;

        a {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        &.show {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
    }
}

.pagination {
    --bs-pagination-active-bg: var(--main-color);
    --bs-pagination-active-border-color: var(--main-color);
    --bs-pagination-color: var(--main-color);
}

[lang="en"] {
    direction: ltr;

    aside {
        left: 0;
        right: unset;

        nav a {
            text-transform: capitalize;
        }
    }

    .fa-angle-left {
        &::before {
            content: "\f105";
        }
    }
}

/* ==================statistics.html==================== */
.apexcharts-menu-icon {
    display: none;
}

#statistics {
    .chart-item {
        background-color: #f4f4f4;
        border-radius: 8px;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        -ms-border-radius: 8px;
        -o-border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.279);
    }

    .statistics-title {
        @media print {
            display: none !important;
        }
    }

    .card-filter {
        @media print {
            margin-block: 24px !important;
        }
    }

    .stat-beneficiaries-card {
        /* background-color: #f4f4f4; */
        padding: 36px 24px;
        box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
        border-radius: 14px;
        -webkit-border-radius: 14px;
        -moz-border-radius: 14px;
        -ms-border-radius: 14px;
        -o-border-radius: 14px;
    }
}

div.dataTables_wrapper div.dataTables_length select{
    min-width: 100px;
}
