@import "./icons.css";
@import "./pagination.css";
@import "./customized.css";
@import "./drop-down.css";
@import "./dashboard.css";
@import "./header.css";
@import "./fontawesome.min.css";
@import "./input-control.css";
@import "./tooltip-control.css";
@import "./spinner.css";

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
}

/* importing fonts*/
@font-face {
  font-family: "vazir";
  src: url("../fonts/Vazirmatn-VariableFont_wght.ttf");
}

/* fallback */
@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Materia-Icons.woff2") format("woff2");
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

:root {
  --Main-Green: #304d30;
  --Black: #02060c;
  --accent-color: #124076;
  --Main-Green-Dark---1: #131f13;
  --Main-Green-Dark---2: #1d2e1d;
  --Main-Green-Dark---3: #263e26;
  --Main-Green-Light---1: #4e6a4e;
  --Main-Green-Light---2: #6d876d;
  --Main-Green-Light---3: #8ba38b;

  --Main-Gray-Dark---1: #383838;
  --Main-Gray-Dark---2: #646464;
  --Main-Gray-Dark---3: #828282;

  --Main-Gray-Light---1: #bdbdbd;
  --Main-Gray-Light---2: #d7d7d7;
  --Main-Gray-Light---3: #ebebeb;

  /* Core semantic roles */
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-danger: #f44336;
  --color-unknown: #2121215e;
  --color-dark: #000;
  --color-light: #fff;

  /* Additional semantic colors */
  --color-primary: #2196f3;
  --color-info: #03a9f4;
  --color-neutral: #9e9e9e;
  --color-detection: #3f51b5;
  --color-secondary: #607d8b;
  --color-accent: #e91e63;
  --color-nonmilitary: #9c27b0;

  --font-family-fa: "vazir", sans-serif;
  --font-family-en: "Rubik", sans-serif;

  --clr-font-dark: #000;
  --clr-font-light: #fff;

  --content-margin: 20px;
  --content-padding: 10px;
}

.badge {
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  color: #fff;
}

.badge-danger {
  background-color: var(--color-danger);
}
.badge-unknown {
  background-color: var(--color-unknown);
  color: #374151;
}
.badge-success {
  background-color: var(--color-success);
}
.badge-warning {
  background-color: var(--color-warning);
}
.badge-primary {
  background-color: var(--color-primary);
}
.badge-dark {
  background-color: var(--color-dark);
}
.badge-light {
  background-color: var(--color-light);
  color: #374151;
}

/* Additional semantic and utility badges */
.badge-info {
  background-color: var(--color-info);
}
.badge-neutral {
  background-color: var(--color-neutral);
}
.badge-detection {
  background-color: var(--color-detection);
}
.badge-secondary {
  background-color: var(--color-secondary);
}
.badge-accent {
  background-color: var(--color-accent);
}
.badge-nonmilitary {
  background-color: var(--color-nonmilitary);
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.7rem;
  direction: rtl;
  font-family: var(--font-family-fa) !important;
  position: relative;
  transition: all 0.3s;
  color: var(--clr-font-dark);
  padding: 0;
  margin: 0;
  direction: rtl;
}

#mainContainer {
  padding-right: 55px;
}

.container {
  position: relative;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  margin-left: 0;
  transition: max-width 0.3s ease;
}

.english-text {
  font-family: var(--font-family-en);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: var(--clr-font-dark);
}
a {
  color: var(--clr-font-light);
}

div {
  user-select: none;
  cursor: default;
}

button {
  all: unset;
  cursor: pointer;
  font-family: var(--font-family-fa) !important;
}
/* header */

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--Main-Gray-Dark---3);
  background-color: var(--Main-Gray-Light---2);
  position: sticky;
  width: 100%;
}

input {
  border: none;
}
input:focus {
  outline: none;
  border: none;
}

.main-style-full {
  margin-right: 0 !important;
  width: 100%;
}

.backdrop-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 500;
  background-color: #00000083;
  backdrop-filter: blur(3px);
}
.dialog-backdrop-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 500;
  background-color: #00000083;
  backdrop-filter: blur(3px);
}

.flashes {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flashes li {
  background-color: #444;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-family: Arial, sans-serif;
  position: relative;
  animation: slideIn 0.3s ease-in-out;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
  max-width: 300px;
  word-wrap: break-word;
}

.flashes li span {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.flashes li.success {
  background-color: #4caf50;
}

.flashes li.error {
  background-color: #f44336;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#message-box {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 16px;
}
.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.radio-label {
  color: black; /* Default color */
  cursor: pointer;
  font-weight: normal;
}

/* Change label color when the radio button is selected */
.recording-radio:checked + .radio-label {
  color: blue;
  font-weight: bold;
}

a.disabled {
  pointer-events: none;
  cursor: default;
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 10px; /* Adjust size */
  height: 10px;
  border: 2px solid var(--Main-Green);
  border-radius: 0;
  display: inline-block;
  position: relative;
}

input[type="radio"]:checked::before {
  content: "";
  width: 5px; /* Inner circle size */
  height: 5px;
  background-color: var(--Main-Green);
  border-radius: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 10px; /* Adjust size */
  height: 10px;
  border: 2px solid var(--Main-Green);
  border-radius: 0;
  display: inline-block;
  position: relative;
}

input[type="checkbox"]:checked::before {
  content: "";
  width: 5px;
  height: 5px;
  background-color: var(--Main-Green);
  border-radius: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.datepicker-container.pwt-mobile-view .datepicker-plot-area .table-days td,
.datepicker-container.pwt-mobile-view
  .datepicker-plot-area
  .table-days
  td
  span {
  font-family: var(--font-family-fa);
}

.datepicker-container.pwt-mobile-view {
  width: 15% !important;
  height: 35% !important;
  font-size: 1.5rem;
  font-family: var(--font-family-fa);
}
.datepicker-container.pwt-mobile-view:nth-of-type(1) {
  left: 50% !important;
  top: 20% !important;
  transform: translateX(-50%);
}

.datepicker-container.pwt-mobile-view:nth-of-type(2) {
  left: 50% !important;
  top: 80% !important;
  transform: translateX(-50%);
}

.datepicker-plot-area {
  font-family: var(--font-family-fa);
  border-radius: 30px;
}
.datepicker-container.pwt-mobile-view .datepicker-plot-area {
  font-size: 1.5rem;
  font-family: var(--font-family-fa);
}
.datepicker-plot-area .datepicker-day-view .table-days {
  font-size: 1.5rem;
}

/* Fixes for RTL display issues */
.mdtp__wrapper {
  direction: ltr !important; /* Force LTR inside the picker */
}
.mdtp__digit {
  font-size: 18px !important; /* Adjust font size for better spacing */
}
.mdtp__clock {
  transform: scaleX(-1); /* Mirror clock face for better RTL support */
}
.mdtp__wrapper {
  direction: ltr !important;
}

/* Fix clock number positioning */
.mdtp__clock {
  transform: none !important; /* Remove mirroring */
}

/* Adjust AM/PM buttons for RTL */
.mdtp__buttons {
  direction: rtl !important;
}

.mdtp__wrapper {
  top: 30% !important;
  left: 50% !important;
  box-shadow: none !important;
}
.button-group {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  width: 90%;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.flex-between {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1440px) {
  html {
    font-size: 56%;
  }
  body {
    font-size: 1.6rem;
  }
}

@media (min-width: 1440px) and (max-width: 1920px) {
  html {
    font-size: 60%;
  }
  body {
    font-size: 1.8rem;
  }
}

@media (min-width: 1920px) and (max-width: 2560px) {
  html {
    font-size: 65%;
  }
  body {
    font-size: 2rem;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 80%;
  }
  body {
    font-size: 2rem;
  }
  header nav {
    padding: 20px;
    font-size: 2rem;
  }
  /* .main-style {margin-right: 0 !important;margin-left: 0 !important;}
  .main-style-full {margin-right: 0 !important;width: 100%;} */
  button {
    font-size: 2rem;
    padding: 10px 15px;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 2.5rem;
  }
  p {
    font-size: 2rem;
  }
  header {
    font-size: 2rem;
  }
  header nav a {
    font-size: 2rem;
    padding: 10px 20px;
  }
  .modal {
    width: 100%;
    padding: 40px;
    font-size: 2rem;
    border-radius: 15px;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    height: 80px;
    font-size: 1.8rem;
    padding: 15px;
  }
  form {
    font-size: 2rem;
    padding: 30px;
  }
  table {
    font-size: 1.8rem;
  }
  th,
  td {
    padding: 20px;
  }
  input[type="radio"] {
    width: 20px;
    height: 20px;
  }
  input[type="radio"]:checked::before {
    width: 10px;
    height: 10px;
  }
  input[type="checkbox"] {
    width: 20px; /* Adjust size */
    height: 20px;
  }
  input[type="checkbox"]:checked::before {
    width: 10px;
    height: 10px;
  }
  .flashes li {
    font-size: 2rem;
    padding: 20px 30px;
    max-width: 500px;
    border-radius: 12px;
  }
  .flashes li span {
    font-size: 2rem;
    right: 20px;
  }
}
