@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazir.eot");
    /* IE9 Compat Modes */
    src: url("../fonts/Vazir.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Vazir.woff2") format("woff2"),
        url("../fonts/Vazir.woff") format("woff"),
        url("../fonts/Vazir.ttf") format("truetype");
    /* Safari, Android, iOS */
}

body {
    font-family: "Vazir", Arial, Helvetica, sans-serif !important;
}
.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/*
   * Sidebar
   */

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Height of navbar */
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link .feather {
    margin-left: 4px;
    color: #727272;
}

.sidebar .nav-link.active {
    background-color: #e1e1e1;
    font-weight: bold;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/*
   * Navbar
   */

.navbar-brand {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
}

.navbar .navbar-toggler {
    top: 0.25rem;
    left: 1rem;
}

.navbar .form-control {
    padding: 0.75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

#chartdiv {
    width: 100%;
    height: 500px;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.page-link {
    padding: 0.375rem 0.75rem;
    color: #212529;
}

.page-link:focus {
    color: #212529;
    box-shadow: 0 0 0 0.25rem rgb(26 27 28 / 25%);
}

.page-link:hover {
    color: #212529;
}

.cursor-pointer {
    cursor: pointer;
}

.sidebar-menu {
    font-size: 0.85rem;
}

.dir-rtl {
    direction: rtl;
}

.dir-ltr {
    direction: ltr;
}

/* Style for Toast with sweetalert 2 */
.colored-toast.swal2-icon-success {
    background-color: #a5dc86 !important;
}

.colored-toast.swal2-icon-error {
    background-color: #f27474 !important;
}

.colored-toast.swal2-icon-warning {
    background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-info {
    background-color: #3fc3ee !important;
}

.colored-toast.swal2-icon-question {
    background-color: #87adbd !important;
}

.colored-toast .swal2-title {
    color: white;
}

.colored-toast .swal2-close {
    color: white;
}

.colored-toast .swal2-html-container {
    color: white;
}
/* End Style for Toast with sweetalert 2 */

/* drop image */
.drop-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: all 0.3s ease-in-out;

    opacity: 0;
    visibility: hidden;
}
.show {
    opacity: 1;
    visibility: visible;
}

.crop-box {
    width: 400px;
    height: 400px;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
}

.imagePreview {
    max-width: 100%;
    max-height: 100%;
}

.croppedPreview {
    display: block;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.fade-field {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.fade-field.show {
    opacity: 1;
    max-height: 100px;
    overflow: visible;
}

/*  */

/* Tooltip سفارشی */
.custom-tooltip {
    position: relative;
}

.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease-in-out;
    z-index: 10;

    /* حالت مخفی */
    visibility: hidden;
}

/* مثلث کوچک */
.custom-tooltip::before {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #222;

    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease-in-out;
}

/* حالت نمایش */
.custom-tooltip:hover::after,
.custom-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* drop image */
.drop-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: all 0.3s ease-in-out;

    opacity: 0;
    visibility: hidden;
}
.show {
    opacity: 1;
    visibility: visible;
}

.crop-box {
    width: 400px;
    height: 400px;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
}

.imagePreview {
    max-width: 100%;
    max-height: 100%;
}

.croppedPreview {
    display: block;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
