
/* default settings */
html {
    scroll-behavior: smooth;
    scrollbar-color: #858585 #fff;
    scrollbar-width: thin;
    transition: all 0.3s;
}

body {
    font-size: var(--font-size) !important;
    transition: all 0.3s;
    height: 100hv;
    background-color: #f4f5f7;
}

* {
    transition: all 0.3s;
}

html,
body {
    height: 100%;
}

body::-webkit-scrollbar {
    width: 0.4em;
    height: 0.4em;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(192, 192, 192, 0.3);
}

body::-webkit-scrollbar-thumb {
    background-color: #c2c2c2;
    border-radius: 10px;
}

select::-webkit-scrollbar {
    width: 0.4em;
    height: 0.4em;
}

select::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

select::-webkit-scrollbar-thumb {
    background-color: #222222;
    border-radius: 10px;
}

[base_scroll]::-webkit-scrollbar {
    width: 0.4em;
    height: 0.4em;
}
[base_scroll]::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
[base_scroll]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.20);;
    border-radius: 10px;
}


select:not([defualt_select]) {
    scrollbar-color: #202020 #fff;
    scrollbar-width: thin;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
}

[no_style]{
    border: none;
    border-radius: 0;
    width: unset;
    background: none;
    padding: 0;
    margin: 0 6px;
    max-width: 70px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

a {
    text-decoration: none;
    color: rgba(15, 15, 15, 1);
    cursor: pointer;
}

button {
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
}

button:focus {
    border: none;
    outline: none;
}

a:hover {
    text-decoration: none;
    color: rgba(15, 15, 15, 1);
}


/* li ul */

ul {
    padding: 0;
    list-style: none;
}


/*__ img __*/

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}


/*__ Form __*/

.form {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.07);
    padding: 20px;
    position: relative;
}

input[type="submit"] {
    cursor: pointer;
}

select:focus-visible,
input:focus,
textarea:focus-visible,
textarea:focus {
    outline: none;
    border-color: rgb(81, 81, 81);
}

input,
select,
textarea {
    box-shadow: none;
    border: 0.5px solid rgba(0, 0, 0, 0.10);
    border-radius: 0px;
    /* padding: 4px; */
    color: #000000 !important;
    font-size: 1.2em;
}
input::placeholder {
    font-size: 0.8em;
}
/* form input:invalid,
form select:invalid,
form textarea:invalid {
    border-color: #F91B25;
} */
/* form input:focus-visible:valid,
form select:focus-visible:valid,
form textarea:focus-visible:valid {
    border-color: #0fc454;
} */

input[type='search'] {
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

textarea {
    display: block;
    width: 100%;
    outline: none;
    padding: 10px;
}

input[type="checkbox"], input[type="radio"] {
    accent-color: var(--main);
}

input:lang(en)~.custom-file-label::after {
    content: "انتخاب فایل" !important;
}

[required]:not(input):after {
    content: "*";
    color: rgb(255, 59, 59);
    margin: 0 6px;
}

[disabled],
[readonly] {
    background-color: #E7E6E6!important;
    cursor: not-allowed !important;
    color: #000000 !important;
    transition: 0.3s;
    pointer-events: none;
}

::placeholder {
    color: rgba(81, 81, 81, 0.3);
    font-size: 1.4em;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(81, 81, 81, 0.3);
}

input[type=file]::file-selector-button {
    display: none;
    visibility: hidden;
}

input[type=file] {
    position: relative;
}

input[type=file]:invalid:after {
    content: "فایلی انتخاب نشده است";
    position: absolute;
    background: #fff;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    font-size: 0.8em;
    display: flex;
    justify-content: center;
    align-items: center;
}

label {
    margin-bottom: 0;
    font-size: 1.6em;
}


/*__ table __*/

table {
    border-spacing: 0;
}

table tr:first-child {
    background: rgba(0, 0, 0, 0.10);
    padding: 12px;
    border-radius: 10px;
    /* border: 1px solid #555555; */
}

table tr:not(:first-child):hover {
    background-color: #F5F5F5;
    cursor: pointer;
}

table tr th {
    color: #414042;
    font-weight: 100;
}

table tr th:first-child,
table tr td:first-child {
    border-radius: 0 10px 10px 0;
}
table tr th:last-child,
table tr td:last-child {
    border-radius: 10px 0 0 10px;
}

table tr td,
table tr th {
    padding: 12px;
}

table tr td {
    font-size: 0.9em;
    font-weight: 400;
    color: #52575D;
}


/*__ alert __*/

/* bootstrap alert */
.alert {
    font-size: 1.5em;
    text-align: justify;
}

/* my alert */

.alert_parent {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: flex-start;
    z-index: +999;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: -1;
}

.Loupe_alert_ {
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0px;
    padding-left: 55px;
    border-radius: 15px;
    color: #fff;
    font-size: 1.4em;
    font-weight: 500;
    transform: translateX(110%);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}
.Loupe_alert_::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
}
.Loupe_alert_ .alert-text-card .icon {
    max-height: 35px;
    min-width: 35px;
}
.Loupe_alert_ .alert-text-card .icon svg {
    display: none;
}
.Loupe_alert_.info .alert-text-card .icon .info {
    display: inline-block;
}
.Loupe_alert_.info::after {
    background-color: #008DFF;
}
.Loupe_alert_.warning .alert-text-card .icon .warning {
    display: inline-block;
}
.Loupe_alert_.warning::after {
    background-color: #FFA800;
}
.Loupe_alert_.success .alert-text-card .icon .success {
    display: inline-block;
}
.Loupe_alert_.success::after {
    background-color: #25B700;
}
.Loupe_alert_.danger .alert-text-card .icon .danger,.Loupe_alert_.error .alert-text-card .icon .danger {
    display: inline-block;
}
.Loupe_alert_.danger::after, .Loupe_alert_.error::after {
    background-color: #FF0000;
}
.Loupe_alert_ .alert-text-card .alert-text {
    font-size: 14px;
    font-weight: 500;
    margin: 0 16px;
}

.Loupe_alert_ .alert_close_btn {
    position: absolute;
    top: 15px;
    left: 30px;
    padding-right: 20px;
    margin-right: 20px;
    border-right: 1px solid rgba(118, 118, 118, 0.502);
    height: 40px;
    display: flex;
    align-items: center;
}

.alert_parent.show_up {
    opacity: 1;
    pointer-events: unset;
    visibility: visible;
    z-index: +999;
}
.alert_parent.show_up .Loupe_alert_ {
    transform: translateX(0);
}
.alert_parent.show_up .Loupe_alert_::after {
    animation: line-timer 10s ease-out;
}
/* Preloder */

#preloder {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloder .loader {
    width: 0;
    animation: loader 1300ms linear;
    -webkit-animation: loader 1300ms linear;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
#preloder .loader img {
    width: 200px;
    min-width: 200px;
}
@keyframes loader {
    0% {
        width: 0px;
    }
    50% {
        width: 100px;
    }
    100% {
        width: 100%;
        display: flex;
    }
}
/* progress bar */

.progressbar {
    transition: all 0.3s;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    z-index: +1000;
}

.progressbar .progress {
    display: block;
    height: auto;
}

.progressbar .progress .loader {
    border: 5px solid #e4e4e4;
    border-top: 5px solid var(--main_color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spiner 0.3s linear infinite;
}


/* animation */

@keyframes spiner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.scroll_up {
    position: fixed;
    right: 45px;
    bottom: 55px;
    width: 50px;
    height: 50px;
    color: #c8c8c8;
    border: 2px solid #eaeaea;
    text-align: center;
    vertical-align: middle;
    line-height: 46px;
    border-radius: 100%;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: +999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .scroll_up:hover {
    color: #1b1b1b;
    border: 3px solid #1b1b1b;
  }
  .scroll_up:hover svg path{
    fill: #1b1b1b !important;
  }