/* Apply the font to the entire page */

/* Vazirmatn - Persian/Arabic characters only */
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/webfonts/vazir/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600- U+06FF,
    U+0750- U+077F,
    U+08A0- U+08FF,
    U+FB50- U+FDFF,
    U+FE70- U+FEFF;
}

/* B Nazanin - Numbers and other Latin characters */
@font-face {
  font-family: "Vazirmatn Numbers";
  src: url("${window.location.origin}/sinad-files/fonts/B Nazanin_p30download.com.ttf")
    format("truetype");
  unicode-range: U+0030- U+0039; /* Only digits 0-9 */
  font-weight: 400;
}

@font-face {
  font-family: "Vazirmatn Bold";
  src: url("/static/webfonts/vazir/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600- U+06FF,
    U+0750- U+077F,
    U+08A0- U+08FF,
    U+FB50- U+FDFF,
    U+FE70- U+FEFF;
}

/* Bold numbers */
@font-face {
  font-family: "Vazirmatn Bold Numbers";
  src: url("https://khodealishon.com/sinad-files/fonts/B Nazanin Bold_p30download.com.ttf")
    format("truetype");
  unicode-range: U+0030- U+0039; /* Only digits 0-9 */
  font-weight: 700;
}

h2,
h3 {
  font-family: "Vazirmatn Bold", sans-serif !important;
  color: #990000;
}

body {
  font-family: "Vazirmatn", "B Nazanin", sans-serif !important;
  font-feature-settings:
    "ss01" on,
    "ss02" on; /* These may enable Persian numerals */
  -webkit-font-feature-settings:
    "ss01" on,
    "ss02" on;
  -moz-font-feature-settings:
    "ss01" on,
    "ss02" on;
}

/* Force B Nazanin for numbers using CSS */
body {
  font-family: "Vazirmatn", "B Nazanin", sans-serif !important;
  background-color: #dbdbdb !important;
}

/* Use this if Vazirmatn supports Persian numerals but they're not enabled */
* {
  font-feature-settings:
    "ss01" on,
    "ss02" on,
    "ss03" on,
    "ss04" on;
  -webkit-font-feature-settings:
    "ss01" on,
    "ss02" on,
    "ss03" on,
    "ss04" on;
  -moz-font-feature-settings:
    "ss01" on,
    "ss02" on,
    "ss03" on,
    "ss04" on;
}

:root {
  --primary: #990000;
  --primary-hover: #7a0000;
  --primary-light: #f8f0f0;
  --primary-dark: #660000;

  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;

  --text-primary: #333333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --bg-light: #f8f9fa;
}

h1,
h2,
h3 {
  font-family: BTitr;
}

.container,
.container-fluid {
  margin-top: 5%;
  padding: 0 15px;
}

.rounded-pill {
  border-radius: 15px !important;
  color: var(--primary-light);
}

.form-select {
  background-color: var(--primary-light) !important;
  color: var(--text-primary);
  border: none;
  border-radius: 15px;
  padding: 0.45em;
}

.form-select > option {
  background-color: var(--primary-light);
  color: var(--text-primary);
}

.bg-default {
  background-color: var(--text-muted);
}

.badge {
  border-radius: 15px !important;
  padding: 0.45em;
  color: var(--primary-light);
}

.bg-danger {
  background-color: var(--primary) !important;
}

.btn-danger {
  background-color: var(--primary) !important;
}

.form-check-input {
  margin: 0;
  position: unset;
}

.text-header {
  color: var(--primary) !important;
  font-weight: bold !important;
}

.logo {
  object-fit: contain;
  width: auto;
}

ul {
  list-style-type: none;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
}

.infinity-count {
  font-size: 1.5em !important;
  font-weight: bold;
}

.post-form {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Header Styles - Mobile First */
.header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header ul {
  background-color: transparent;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header li {
  font-size: 0.85em;
  margin: 0;
}

.header li a {
  display: block;
  color: #990000;
  text-align: center;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 0.8em;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.header li a:hover {
  background-color: #f8f8f8;
  color: #990000;
  transform: translateY(-2px);
}

/* Menu Icon for Mobile */
.header .menu-icon {
  cursor: pointer;
  display: block;
  padding: 15px;
  position: relative;
  user-select: none;
}

.user_card {
  margin-top: 20% !important;
}

.header .menu-icon .navicon {
  background: #990000;
  display: block;
  height: 3px;
  position: relative;
  transition: background 0.2s ease-out;
  width: 25px;
  border-radius: 2px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #990000;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
  border-radius: 2px;
}

.header .menu-icon .navicon:before {
  top: 8px;
}

.header .menu-icon .navicon:after {
  top: -8px;
}

/* Menu Button */
.header .menu-btn {
  display: none;
}

.btn {
  border-radius: 10px !important;
  margin: 0.1em !important;
  border: none;
}

/* Mobile Menu */
.header .menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #dbdbdb;
  clear: both;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header .menu-btn:checked ~ .menu {
  max-height: 400px;
  overflow-y: auto;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
  top: 0;
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
  top: 0;
}

/* Form Styles */
form {
  color: #990000;
}

button {
  background-color: #990000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #7a0000;
}

/* Table Styles */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th,
td {
  text-align: center;
  padding: 12px 8px;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: var(--primary-light);
  color: var(--text-primary);
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f8f8f8;
}

tr:hover {
  background-color: #f0f0f0;
}

/* Utility Classes */
.bigScreen {
  display: none;
}

.child {
  margin-top: 20%;
}

/* Responsive Design */
/* Mobile Devices (default) */
#address,
#phone,
#city,
#time {
  display: none;
}

/* Hide logo on mobile */
@media (max-width: 1023px) {
  .header-left {
    display: none;
  }

  .header {
    justify-content: flex-end;
  }

  .header-right {
    margin-left: auto;
    margin-right: 15px;
  }

  .header .menu-icon {
    order: 1;
  }

  .header-right {
    order: 2;
  }

  .header-center {
    order: 3;
  }
}

/* Tablet Devices */
@media (min-width: 768px) {
  body {
    padding-top: 70px;
  }

  .header {
    height: 70px;
    padding: 8px 20px;
  }

  .container,
  .container-fluid {
    margin-top: 3%;
  }

  .post-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .child {
    margin-top: 10%;
  }
}

/* Desktop Devices */
@media (min-width: 1024px) {
  body {
    padding-top: 60px;
  }

  .header {
    height: 60px;
    padding: 5px 30px;
  }

  /* Show logo on desktop */
  .header-left {
    display: block;
  }

  .header {
    justify-content: space-between;
  }

  /* Hide menu icon on desktop */
  .header .menu-icon {
    display: none;
  }

  /* Show horizontal menu on desktop */
  .header .menu {
    position: static;
    clear: none;
    max-height: none;
    float: right;
    display: flex !important;
    background: transparent;
    box-shadow: none;
  }

  .header li {
    float: left;
    border-right: 1px solid #f0f0f0;
    height: auto;
  }

  .header li:last-child {
    border-right: none;
  }

  .header li a {
    padding: 15px 20px;
    font-size: 0.9em;
  }

  .container,
  .container-fluid {
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
  }

  #address,
  #phone,
  #city,
  #time,
  .bigScreen {
    display: revert;
  }

  .child {
    margin-top: 0%;
  }

  .post-form {
    width: 80%;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .header li a {
    padding: 15px 25px;
    font-size: 0.9em;
  }

  .post-form {
    width: 70%;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }

  .header {
    height: 70px;
    padding: 8px 10px;
  }

  .header li a {
    padding: 15px 20px;
    font-size: 0.8em;
  }

  .container,
  .container-fluid {
    margin-top: 8%;
    padding: 0 10px;
  }

  .child {
    margin-top: 25%;
  }

  th,
  td {
    padding: 8px 5px;
    font-size: 0.9em;
  }
}

header {
  background-color: #dbdbdb !important;
}

.editable-cell,
.non-editable,
.action-buttons {
  background-color: #f8f9fa !important;
}

/* Print Styles */
@media print {
  .header {
    display: none;
  }

  body {
    padding-top: 0;
    background: white;
  }
}

/* ============================================ */
/* DROPDOWN MENU STYLES */
/* ============================================ */

/* Dropdown container */
.dropdown-trigger {
  position: relative;
}

/* Dropdown arrow */
.dropdown-trigger .arrow {
  display: inline-block;
  margin-right: 5px;
  font-size: 0.55em;
  transition: transform 0.3s ease;
}

/* Admin badge */
.admin-badge {
  display: inline-block;
  background-color: #990000;
  color: #ffffff;
  font-size: 0.6em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 5px;
  vertical-align: middle;
  font-weight: bold;
}

/* Dropdown menu container */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  margin: 2px 0 0 0;
  list-style: none;
  border: 1px solid #e0e0e0;
  z-index: 1001;
}

/* Dropdown header styling */
.dropdown-menu .dropdown-header {
  padding: 6px 14px;
  font-size: 0.7em;
  font-weight: bold;
  color: #990000;
  background-color: #fafafa;
  border-bottom: 2px solid #990000;
  margin-bottom: 2px;
  text-align: right;
  cursor: default;
}

/* Dropdown divider */
.dropdown-menu .dropdown-divider {
  height: 1px;
  background-color: #e8e8e8;
  margin: 4px 0;
  padding: 0;
}

/* Dropdown items */
.dropdown-menu li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f5f5f5;
  float: none;
  display: block;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  background-color: white;
  display: block;
  padding: 8px 14px;
  color: #444444;
  text-decoration: none;
  font-size: 0.8em;
  transition: all 0.2s ease;
  text-align: right;
  white-space: nowrap;
  border-radius: 0;
}

.dropdown-menu li a:hover {
  background-color: #f8f4f4;
  color: #990000;
  padding-right: 18px;
  transform: none;
}

/* ============================================ */
/* DESKTOP DROPDOWN (min-width: 1024px) */
/* ============================================ */
@media (min-width: 1024px) {
  /* Show dropdown on hover */
  .dropdown-trigger:hover .dropdown-menu {
    display: block;
  }

  /* Hover indicator for parent link */
  .dropdown-trigger:hover > a {
    background-color: #fafafa;
    border-radius: 6px 6px 0 0;
  }

  /* Prevent menu from clipping dropdowns */
  .header .menu {
    overflow: visible !important;
  }

  .header li.dropdown-trigger {
    overflow: visible !important;
  }

  /* Ensure dropdown items don't inherit float */
  .dropdown-menu li {
    border-right: none !important;
    height: auto;
  }

  /* Reset transform on dropdown items */
  .dropdown-menu li a:hover {
    transform: none !important;
  }
}

/* ============================================ */
/* MOBILE DROPDOWN (max-width: 1023px) */
/* ============================================ */
@media (max-width: 1023px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background-color: rgba(153, 0, 0, 0.03);
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: block;
    border-top: 1px solid rgba(153, 0, 0, 0.08);
  }

  /* Show dropdown when parent has active class */
  .dropdown-trigger.active .dropdown-menu {
    max-height: 600px;
  }

  /* Rotate arrow when active */
  .dropdown-trigger.active .arrow {
    transform: rotate(180deg);
  }

  .navbarLink {
    font-size: medium;
  }

  /* Indent dropdown items */
  .dropdown-menu li a {
    padding-right: 35px;
    font-size: 0.85em;
    background-color: white;
    color: #555555;
    border-bottom: 1px solid rgba(153, 0, 0, 0.05);
    white-space: normal;
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu .dropdown-header {
    padding-right: 30px;
    font-size: 0.75em;
    background-color: rgba(153, 0, 0, 0.06);
    border-bottom: 1px solid rgba(153, 0, 0, 0.1);
  }

  .dropdown-menu .dropdown-divider {
    display: none;
  }

  /* Make links flex for arrow positioning */
  .dropdown-trigger > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Remove hover transform on mobile */
  .header li a:hover {
    transform: none;
  }

  /* Allow mobile menu to expand fully */
  .header .menu-btn:checked ~ .menu {
    max-height: none;
    overflow-y: auto;
  }
}

/* ============================================ */
/* EXTRA LARGE SCREENS */
/* ============================================ */
@media (min-width: 1400px) {
  .dropdown-menu {
    min-width: 200px;
  }

  .dropdown-menu li a {
    padding: 10px 16px;
    font-size: 0.85em;
  }
}
/* ============================================ */
/* MOBILE DROPDOWN (max-width: 1023px) */
/* ============================================ */
@media (max-width: 1023px) {
  .dropdown-menu {
    position: relative; /* Changed from static */
    box-shadow: none;
    border: none;
    border-radius: 0;
    background-color: rgba(153, 0, 0, 0.03);
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: block;
    border-top: 1px solid rgba(153, 0, 0, 0.08);
    /* Add this to prevent overlap */
    clear: both;
  }

  /* Show dropdown when parent has active class */
  .dropdown-trigger.active .dropdown-menu {
    max-height: 600px;
    /* Add this to ensure it pushes content down */
    overflow-y: auto;
  }

  /* Rotate arrow when active */
  .dropdown-trigger.active .arrow {
    transform: rotate(180deg);
  }

  .navbarLink {
    font-size: medium;
  }

  /* Indent dropdown items */
  .dropdown-menu li a {
    padding-right: 35px;
    font-size: 0.85em;
    background-color: white;
    color: #555555;
    border-bottom: 1px solid rgba(153, 0, 0, 0.05);
    white-space: normal;
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu .dropdown-header {
    padding-right: 30px;
    font-size: 0.75em;
    background-color: rgba(153, 0, 0, 0.06);
    border-bottom: 1px solid rgba(153, 0, 0, 0.1);
  }

  .dropdown-menu .dropdown-divider {
    display: none;
  }

  /* Make links flex for arrow positioning */
  .dropdown-trigger > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    /* Add this to ensure parent link stays clickable */
    position: relative;
    z-index: 2;
  }

  /* Remove hover transform on mobile */
  .header li a:hover {
    transform: none;
  }

  /* Allow mobile menu to expand fully */
  .header .menu-btn:checked ~ .menu {
    max-height: none;
    overflow-y: auto;
  }

  /* Ensure dropdown items don't overlap with parent */
  .dropdown-trigger {
    position: relative;
    overflow: visible;
  }

  /* Make dropdown appear below parent */
  .dropdown-trigger .dropdown-menu {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }
}
/* ============================================ */
/* DESKTOP DROPDOWN (min-width: 1024px) */
/* ============================================ */
@media (min-width: 1024px) {
  /* Show dropdown on hover */
  .dropdown-trigger:hover .dropdown-menu {
    display: block;
  }

  /* Hover indicator for parent link */
  .dropdown-trigger:hover > a {
    background-color: #fafafa;
    border-radius: 6px 6px 0 0;
  }

  /* Prevent menu from clipping dropdowns */
  .header .menu {
    overflow: visible !important;
  }

  .header li.dropdown-trigger {
    overflow: visible !important;
    position: relative;
  }

  /* Ensure dropdown items don't inherit float */
  .dropdown-menu li {
    border-right: none !important;
    height: auto;
  }

  /* Reset transform on dropdown items */
  .dropdown-menu li a:hover {
    transform: none !important;
  }
}

.period-options {
  display: block ruby;
}

/* ============================================ */
/* CUSTOM ALERT / CONFIRM / PROMPT STYLES */
/* ============================================ */

.welcome-message {
  color: var(--primary);
}

.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: customAlertFadeIn 0.2s ease-out;
}

@keyframes customAlertFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-alert-box {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 420px;
  padding: 30px 25px 25px 25px;
  text-align: center;
  animation: customAlertSlideIn 0.25s ease-out;
  direction: rtl;
  font-family: "Vazirmatn", "B Nazanin", sans-serif;
}

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

.custom-alert-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  font-size: 28px;
  font-weight: bold;
}

.custom-alert-icon.info {
  background-color: #f0f4ff;
  color: #17a2b8;
}

.custom-alert-icon.success {
  background-color: #e8f5e9;
  color: #28a745;
}

.custom-alert-icon.warning {
  background-color: #fff8e1;
  color: #f0ad4e;
}

.custom-alert-icon.error {
  background-color: #fce4e4;
  color: #dc3545;
}

.custom-alert-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 10px;
}

.custom-alert-message {
  font-size: 0.9em;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 22px;
  word-wrap: break-word;
}

.custom-alert-btn {
  display: inline-block;
  background-color: #990000;
  color: #ffffff;
  border: none;
  padding: 11px 36px;
  border-radius: 10px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: "Vazirmatn", "B Nazanin", sans-serif;
  min-width: 90px;
  margin: 0 6px;
}

.custom-alert-btn:hover {
  background-color: #7a0000;
}

.custom-alert-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.2);
}

/* Confirm / Prompt button row */
.custom-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
}

.custom-confirm-cancel {
  background-color: #6c757d;
}

.custom-confirm-cancel:hover {
  background-color: #5a6268;
}

.custom-confirm-ok {
  background-color: #990000;
}

.custom-confirm-ok:hover {
  background-color: #7a0000;
}

/* Prompt input */
.custom-prompt-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9em;
  font-family: "Vazirmatn", "B Nazanin", sans-serif;
  color: #333333;
  background-color: #fafafa;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
  margin-bottom: 18px;
  resize: vertical;
}

.custom-prompt-input:focus {
  outline: none;
  border-color: #990000;
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.08);
  background-color: #ffffff;
}

.custom-prompt-input::placeholder {
  color: #b0b0b0;
}

/* Date picker wrapper */
.custom-prompt-date-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-bottom: 18px;
}

.custom-prompt-date-wrapper .custom-prompt-input {
  margin-bottom: 0;
  padding-left: 48px;
}

.custom-prompt-date-btn {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  background-color: #990000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  transition: background-color 0.2s;
  padding: 0;
  margin: 0;
  min-width: unset;
}

.custom-prompt-date-btn:hover {
  background-color: #7a0000;
}

/* ============================================ */
/* PERSIAN DATEPICKER CUSTOM STYLES */
/* ============================================ */

/* ============================================ */
/* CUSTOM DATE PICKER STYLES */
/* ============================================ */

.custom-datepicker {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999999999;
  font-family: "Vazirmatn", "B Nazanin", sans-serif;
  direction: rtl;
  width: 280px;
  overflow: hidden;
  display: none;
}

.custom-datepicker.active {
  display: block;
}

.custom-datepicker-header {
  background-color: #990000;
  color: #ffffff;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.custom-datepicker-header button {
  background: none;
  color: #ffffff;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 0;
  min-width: unset;
  line-height: 1;
}

.custom-datepicker-header button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.custom-datepicker-header select {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px 6px;
  font-family: "Vazirmatn", "B Nazanin", sans-serif;
  font-size: 0.85em;
  cursor: pointer;
}

.custom-datepicker-header select option {
  background-color: #ffffff;
  color: #333333;
}

.custom-datepicker-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f8f0f0;
  padding: 4px 6px;
  gap: 2px;
}

.custom-datepicker-days-header span {
  text-align: center;
  font-size: 0.7em;
  font-weight: bold;
  color: #990000;
  padding: 4px 0;
}

.custom-datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px;
  gap: 2px;
}

.custom-datepicker-day {
  text-align: center;
  padding: 6px 0;
  font-size: 0.82em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  color: #333333;
}

.custom-datepicker-day:hover {
  background-color: #f8f0f0;
  color: #990000;
}

.custom-datepicker-day.today {
  border: 2px solid #990000;
  font-weight: bold;
  color: #990000;
}

.custom-datepicker-day.selected {
  background-color: #990000;
  color: #ffffff;
  font-weight: bold;
}

.custom-datepicker-day.other-month {
  color: #d0d0d0;
  cursor: default;
}

.custom-datepicker-day.other-month:hover {
  background-color: transparent;
  color: #d0d0d0;
}

.custom-datepicker-footer {
  background-color: #fafafa;
  border-top: 1px solid #eeeeee;
  padding: 8px;
  display: flex;
  justify-content: space-around;
}

.custom-datepicker-footer button {
  background-color: #990000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-family: "Vazirmatn", "B Nazanin", sans-serif;
  font-size: 0.8em;
  cursor: pointer;
  margin: 0;
  min-width: unset;
}

.custom-datepicker-footer button:hover {
  background-color: #7a0000;
}

.custom-datepicker-footer button.btn-empty {
  background-color: #6c757d;
}

.custom-datepicker-footer button.btn-empty:hover {
  background-color: #5a6268;
}
.custom-prompt-error {
  color: #f44336;
  font-size: 12px;
  margin-top: 6px;
  text-align: right;
}

@keyframes shakeInput {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
