/* Global typography normalization for all templates */
@font-face {
  font-family: "KhoodranUI";
  src: url("fonts/ultralight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "KhoodranUI";
  src: url("fonts/light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "KhoodranUI";
  src: url("fonts/regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "KhoodranUI";
  src: url("fonts/medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "KhoodranUI";
  src: url("fonts/semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "KhoodranUI";
  src: url("fonts/bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "KhoodranUI";
  src: url("fonts/extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

:root {
  --app-font: "KhoodranUI", Tahoma, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

html,
body,
button,
input,
textarea,
select,
option,
label,
a,
span,
p,
li,
td,
th,
h1,
h2,
h3,
h4,
h5,
h6,
small {
  font-family: var(--app-font) !important;
  font-style: normal;
}

/* Keep all form labels at regular weight across all pages */
label,
.form-label {
  font-weight: 400 !important;
}

b,
strong,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

input,
textarea,
select,
button {
  font-size: 16px;
  line-height: 1.4;
}

/* Unified select design across forms */
select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #d6dce5 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

select:focus {
  outline: none !important;
  border-color: #4f8ff5 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 245, 0.2) !important;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

select,
select option {
  color-scheme: light;
}

/* Unified modern file input design across forms */
input[type="file"] {
  width: 100%;
  max-width: 100%;
  border: 1px dashed #c9d8ec !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%) !important;
  color: #334155 !important;
  padding: 10px !important;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 9px;
  background: #0a84ff;
  color: #ffffff;
  font-weight: 500;
  padding: 8px 12px;
  margin-inline-end: 10px;
  cursor: pointer;
  transition: background-color .2s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #0668c8;
}

/* Safari/WebKit fallback */
input[type="file"]::-webkit-file-upload-button {
  border: 0;
  border-radius: 9px;
  background: #0a84ff;
  color: #ffffff;
  font-weight: 500;
  padding: 8px 12px;
  margin-inline-end: 10px;
  cursor: pointer;
}

input[type="file"]:focus {
  outline: none !important;
  border-color: #4f8ff5 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 245, 0.2) !important;
}

input[type="file"]:disabled {
  opacity: .65;
  cursor: not-allowed;
}

code,
pre,
kbd,
samp {
  font-family: "Courier New", Courier, monospace !important;
}

/* تاریخ/ساعت شمسی: چپ‌چین — تاریخ چپ، ساعت راست */
.jalali-datetime,
.adm-jalali-datetime {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  min-width: 11rem;
  max-width: 220px;
  width: 100%;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.jalali-datetime__date,
.adm-jalali-datetime__date {
  flex: 0 0 auto;
}

.jalali-datetime__time,
.adm-jalali-datetime__time {
  flex: 0 0 auto;
  margin-left: auto;
  color: #64748b;
  font-size: 0.95em;
}

.jalali-datetime--empty,
.adm-jalali-datetime--empty {
  color: #94a3b8;
  width: auto;
  min-width: 0;
}
