:root {
  /* Colors */
  --hint-color: #000000;
  --hint-color2: hsl(0, 0%, 64%);
  --font-color: #333333;
  --text-color: #2C3333;

  --primary-color: #12565d;
  --primary-light-color: #02757c;

  --secondary-color: #ecbf25;
  --secondary-light-color: #f3e1a4;

  --third-color: #cde2e0;
  --third-lighter-color: #e9f6f5;

  --red-color: #be2831;
  --red-light-color: #be283242;
  --pink-color: #de4c57;
  --purple-color: #722972;

  --border-color: #dedede;
  --border-color-dark: #888888;
  --border-color-darkest: #666666;

  --green-color: #3d881f;
  --green-light-color: #16542557;
  --green: #62da32;
  --lime: #b7ff00;

  --blue-color: #0fa4b0;
  --dark-blue-color: #0c92df;
  --light-blue: #81d4fa;
  --darkblue: #01579b;

  --yellow-color: #db863c;
  --gold: #ffd700;
  --orange: #ff6200;

  --dark-light: #555555;

  /* Typography */
  --font-base: 1rem;
  --font-small: 0.9rem;
  --font-smaller: 0.8rem;
  --font-smallest: 0.7rem;
  --font-verysmall: 0.65rem;
  --font-big: 1.1rem;
  --font-bigger: 1.2rem;
  --font-biggest: 1.3rem;
  --font-verybig: 1.5rem;
  --font-very-verybig: 2rem;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;

  /* Theme Support */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-primary-dark-theme: #1a1a1a;
  --text-color-dark-theme: #e0e0e0;
}

[data-theme="dark"] {
  --bg-primary: var(--bg-primary-dark-theme);
  --text-color: var(--text-color-dark-theme);
  --font-color: var(--text-color-dark-theme);
}

/* Fonts */

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 200;
  src: url("./fonts/IRANSansWeb_UltraLight_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_UltraLight_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_UltraLight_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_UltraLight_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_UltraLight_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 300;
  src: url("./fonts/IRANSansWeb_Light_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Light_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Light_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Light_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Light_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/IRANSansWeb_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 500;
  src: url("./fonts/IRANSansWeb_Medium_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Medium_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Medium_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Medium_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Medium_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/IRANSansWeb_Bold_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Bold_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Bold_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Bold_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Bold_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 900;
  src: url("./fonts/IRANSansWeb_Black_FaNum.eot");
  src:
    url("./fonts/IRANSansWeb_Black_FaNum.eot?#iefix") format("embedded-opentype"),
    url("./fonts/IRANSansWeb_Black_FaNum.woff2") format("woff2"),
    url("./fonts/IRANSansWeb_Black_FaNum.woff") format("woff"),
    url("./fonts/IRANSansWeb_Black_FaNum.ttf") format("truetype");
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 200;
  src: url('./fonts/IRANSansWeb_UltraLight.eot');
  src: url('./fonts/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_UltraLight.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_UltraLight.woff') format('woff'),
    url('./fonts/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/IRANSansWeb_Light.eot');
  src: url('./fonts/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Light.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Light.woff') format('woff'),
    url('./fonts/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/IRANSansWeb.eot');
  src: url('./fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb.woff2') format('woff2'),
    url('./fonts/IRANSansWeb.woff') format('woff'),
    url('./fonts/IRANSansWeb.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/IRANSansWeb_Medium.eot');
  src: url('./fonts/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Medium.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Medium.woff') format('woff'),
    url('./fonts/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/IRANSansWeb_Bold.eot');
  src: url('./fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Bold.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Bold.woff') format('woff'),
    url('./fonts/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
  font-family: IRANSansEN;
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/IRANSansWeb_Black.eot');
  src: url('./fonts/IRANSansWeb_Black.eot?#iefix') format('embedded-opentype'),
    url('./fonts/IRANSansWeb_Black.woff2') format('woff2'),
    url('./fonts/IRANSansWeb_Black.woff') format('woff'),
    url('./fonts/IRANSansWeb_Black.ttf') format('truetype');
}

.t-en {
  font-family: IRANSansEN;
}

.en {
  font-family: sans-serif, Arial, Helvetica;
}


/* Global Styles */
html {
  direction: rtl;
  text-align: right;
}

body {
  background-color: #f6f7fb;
  text-align: justify;
  font-weight: normal;
  line-height: 1.5;
  color: var(--font-color);
  font-family: IRANSans;
  font-size: var(--font-base);
}

* {
  text-decoration: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  user-select: none;
}

/* Text Colors */
.hint {
  color: var(--hint-color) !important;
}

.hint2 {
  color: var(--hint-color2) !important;
}

.color-white {
  color: #ffffff !important;
}

.color-text {
  color: var(--text-color) !important;
}

.color-primary {
  color: var(--primary-color) !important;
}

.color-primary-light {
  color: var(--primary-light-color) !important;
}

.color-secondary {
  color: var(--secondary-color) !important;
}

.color-third {
  color: var(--third-color) !important;
}

.color-third-lighter {
  color: var(--third-lighter-color) !important;
}

.color-yellow {
  color: var(--yellow-color) !important;
}

.color-blue {
  color: var(--blue-color) !important;
}

.color-dark-blue {
  color: var(--dark-blue-color) !important;
}

.color-green {
  color: var(--green-color) !important;
}

.color-red {
  color: var(--red-color) !important;
}

.color-pink {
  color: var(--pink-color) !important;
}

.color-purple {
  color: var(--purple-color) !important;
}

.green {
  color: var(--green) !important;
}

.blue {
  color: var(--light-blue) !important;
}

.darkblue {
  color: var(--darkblue) !important;
}

.purple {
  color: var(--purple-color) !important;
}

.gold {
  color: var(--gold) !important;
}

.red {
  color: var(--red-color) !important;
}

.yellow {
  color: var(--yellow) !important;
}

.orange {
  color: var(--orange) !important;
}

.pink {
  color: var(--pink) !important;
}

.lime {
  color: var(--lime) !important;
}

.darklight {
  color: var(--dark-light);
}

.primary-color {
  color: var(--primary-color);
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary-light {
  background-color: var(--primary-light-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-secondary-light {
  background-color: var(--secondary-light-color) !important;
}

.bg-fourth {
  background: linear-gradient(to top, #00565C 20%, reec02b 70%) !important;
}

.bg-third {
  background-color: var(--third-color) !important;
}

.bg-third-lighter {
  background-color: var(--third-lighter-color) !important;
}

.bg-yellow {
  background-color: var(--yellow-color) !important;
}

.bg-blue {
  background-color: var(--blue-color) !important;
}

.bg-dark-blue {
  background-color: var(--dark-blue-color) !important;
}

.bg-green {
  background-color: var(--green-color) !important;
}

.bg-green-light {
  background-color: var(--green-light-color) !important;
}

.bg-red {
  background-color: var(--red-color) !important;
}

.bg-red-light {
  background-color: var(--red-light-color) !important;
}

.bg-pink {
  background-color: var(--pink-color) !important;
}

.bg-purple {
  background-color: var(--purple-color) !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-hint {
  background-color: var(--hint-color2);
}

/* Borders and Shadows */
.border-btn-exit {
  border: 2px dashed var(--primary-color);
}

.border-color {
  border: 1.8px solid var(--primary-color);
}

.box-shadow {
  box-shadow: 0 6px 12px -2px rgba(50, 50, 93, 0.25), 0 3px 7px -3px rgba(0, 0, 0, 0.3);
}

.box-shadow-v2 {
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.border-dashed {
  border: 3.5px dashed #017a75;
}

.btm-border {
  border-bottom: 1px solid var(--border-color);
}

.btm-border-dark {
  border-bottom: 1px solid var(--border-color-dark);
}

.btm-border-darkest {
  border-bottom: 1px solid var(--border-color-darkest);
}

.top-border {
  border-top: 1px solid var(--border-color);
}

.top-border-dark {
  border-top: 1px solid var(--border-color-dark);
}

.top-border-darkest {
  border-top: 1px solid var(--border-color-darkest);
}

.no-shadow {
  box-shadow: none;
}

.border {
  border: 1px solid #EDEDED;
  background-color: #fff;
}

.border-dott {
  border: 1.9px dashed var(--primary-color);
}

.left-border {
  border-left: 1px solid var(--border-color);
}

.borderless {
  border: none;
}

/* Typography */
.t-small {
  font-size: var(--font-small);
}

.t-smaller {
  font-size: var(--font-smaller);
}

.t-smallest {
  font-size: var(--font-smallest);
}

.t-verysmall {
  font-size: var(--font-verysmall);
}

.t-big {
  font-size: var(--font-big);
}

.t-bigger {
  font-size: var(--font-bigger);
}

.t-biggest {
  font-size: var(--font-biggest);
}

.t-verybig {
  font-size: var(--font-verybig);
}

.t-very-verybig {
  font-size: var(--font-very-verybig);
}

.bold {
  font-weight: bold;
}

.line-height-x1 {
  line-height: 2;
}

.line-height-x2 {
  line-height: 2.5;
}

.line-height-x3 {
  line-height: 2.75;
}

.line-height-x4 {
  line-height: 3;
}


/* Cards and Panels */
.card-header {
  padding: var(--spacing-sm) var(--spacing-md);
}

.card-body {
  padding: var(--spacing-md);
}

.panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--secondary-light-color);
  border-radius: 10px;
}

.panel-heading {
  background-color: var(--secondary-light-color);
  text-align: center;
  padding: 3px;
  border-radius: 10px 10px 0 0;
  color: var(--font-color);
}

.panel-body {
  padding: var(--spacing-md) var(--spacing-sm);
}

/* Notifications */
.notification {
  position: fixed;
  top: 5rem;
  right: 1.25rem;
  max-width: calc(100% - 2.5rem);
  z-index: 10000;
}

.notification>div {
  min-width: 12.5rem;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 1.5rem;
  border-radius: 5px;
  position: relative;
  margin-bottom: var(--spacing-sm);
  display: none;
  animation: fadeIn 0.4s ease-in-out;
  cursor: pointer;
}

.notification span {
  text-align: justify;
  line-height: 1.5rem;
  display: block;
  font-size: var(--font-small);
}

.notification .danger {
  background-color: #ffcdd2;
  color: #d32f2f;
  border: 1px solid #ef9a9a;
}

.notification .warning {
  background-color: #fff59d;
  color: #ee770e;
  border: 1px solid #fdd835;
}

.notification .info {
  background-color: #81d4fa;
  color: #01579b;
  border: 1px solid #4fc3f7;
}

.notification .success {
  background-color: #a5d6a7;
  color: #1b5e20;
  border: 1px solid #81c784;
}

.notification i {
  position: absolute;
  right: 0.25rem;
  top: var(--spacing-sm);
  font-size: 1.5rem;
}

.notification .icofont-close {
  left: 0;
  top: 0;
  font-size: 1rem;
  right: unset;
}

.notification .notif {
  font-size: var(--font-small);
  padding: 0.4rem 2.5rem 0.4rem 1rem;
  margin-bottom: var(--spacing-md);
}

.notification .notif .pic {
  background-image: url('img/noimg0.jpg');
  width: 3.125rem;
  height: 3.125rem;
  background-size: cover;
  background-position: center;
  padding: 0;
  margin: 0;
  position: absolute;
  border-radius: 50%;
  top: calc(50% - 1.5625rem);
  right: -0.75rem;
}

.notif.warning .pic {
  border: 3px solid #fdd735;
}

.notif.success .pic {
  border: 3px solid #81c784;
}

.notif.danger .pic {
  border: 3px solid #ef9a9a;
}

/* Forms and Inputs */
input {
  color: var(--font-color);
}

input[type=range] {
  pointer-events: none;
}

input[type=range]::-webkit-slider-thumb {
  pointer-events: auto;
}

.btn:focus,
input:focus {
  outline: none;
  box-shadow: none;
}

select {
  text-align-last: center;
}

.form-control {
  color: var(--font-color);
  font-size: var(--font-base);
}

.form-control:focus {
  border-color: #888;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

::placeholder {
  color: var(--hint-color2);
  font-size: var(--font-smaller);
}

[contenteditable=true] {
  outline: none;
  border-bottom: 1px solid #007eb5;
  padding: 0 1.5rem 0 var(--spacing-sm);
  color: var(--font-color);
  word-wrap: break-word;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  position: relative;
  text-align: center;
  min-width: 9.375rem;
}

[contenteditable=true]:empty:before {
  content: attr(placeholder);
  color: var(--hint-color);
}

[contenteditable=true]:empty {
  text-security: none;
}

[contenteditable=true]::after {
  content: "\ea54";
  font-family: 'icofont';
  position: absolute;
  right: -2px;
  bottom: 4px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

/* Buttons */
.mybtn {
  background: var(--green);
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  border-radius: 5px;
  padding: var(--spacing-sm) var(--spacing-md);
}

.mybtn:hover {
  background: color-mix(in srgb, var(--green) 80%, #000);
  transform: scale(1.05);
}

.mybtn.dark {
  background: var(--blue);
}

.mybtn.light {
  background-color: var(--orange);
  color: white;
}

.mybtn.white {
  background-color: white;
  color: rgb(88, 88, 88);
}

.mybtn img {
  height: 1.125rem;
  margin-left: var(--spacing-sm);
}

.multibtn,
.multiselect {
  padding: var(--spacing-sm);
  text-align: center;
}

.multibtn>.btn,
.multiselect>.btn {
  color: var(--hint-color);
  border: 1px solid var(--border-color-dark);
  padding: 0.4rem 1.5rem;
  border-radius: 35px;
  margin: 2px 4px;
  font-size: var(--font-small);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.multibtn>.btn.act,
.multiselect>.btn.act {
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

.multibtn>.btn i,
.multiselect>.btn i {
  position: relative;
  right: -2px;
  font-size: 1.0625rem;
}

.multibtn>.btn .ic2,
.multiselect>.btn .ic2 {
  font-size: 0.9375rem;
  position: absolute;
  right: 5px;
  top: 4px;
}

/* Loading Animation */
.loading,
.loading2 {
  width: 6.25rem;
  left: calc(50% - 3.125rem);
  bottom: 4.375rem;
  z-index: 1000;
  position: fixed;
}

.loading img,
.loading2 img {
  width: 6.25rem;
  filter: drop-shadow(2px 3px 5px black);
  animation: loadinganimate 1.2s infinite ease-in-out;
}

@keyframes loadinganimate {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* Miscellaneous */
.pointer {
  cursor: pointer;
}

.ltr {
  direction: ltr;
}

.rtl {
  direction: rtl;
}

.stretch {
  width: 100%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.radius {
  border-radius: 1.875rem;
}

.radius5 {
  border-radius: 5px;
}

.radius10 {
  border-radius: 10px;
}

.radius15 {
  border-radius: 15px;
}

.radius20 {
  border-radius: 20px;
}

.radius50 {
  border-radius: 50%;
}

.radius-tr-tl {
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.radius-br-bl {
  border-radius: 0 0 10px 10px / 0 0 10px 10px;
}

.custom-radius {
  border-radius: 5px 40px 5px 40px;
}

.blur {
  filter: blur(5px);
}

a,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  line-height: inherit;
}

a:hover {
  color: inherit;
  text-decoration: none;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

span {
  display: inline-block;
}

p {
  margin-bottom: 0;
}

ul {
  list-style-type: none;
}

.container-fluid {
  padding-right: var(--spacing-sm);
  padding-left: var(--spacing-sm);
}

.btm-radius {
  border-radius: 0 0 15px 15px;
}

.modal-content {
  font-family: iran;
  background-color: var(--bg-primary);
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
  padding: var(--spacing-sm) 1rem;
}

.modal-footer {
  justify-content: flex-start;
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.table {
  color: var(--font-color);
}

/* Ellipsis for Multi-line Text in Responsive */
@media (max-width: 768px) {
  .text-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }
}