html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100vh;
}

body {
  margin-bottom: 60px;
}


/* Prevent horizontal scroll */

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}


.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.farsi,
.select2-container--bootstrap-5 .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection--multiple,
.select2-results__option,
.select2,
.select2-search__field {
  font-family: 'Vazirmatn' !important;
  text-align: right !important;
  font-feature-settings: "ss01" !important;
  /* Optional stylistic set */
  unicode-bidi: plaintext;
  /* Ensures digits are treated contextually */
}

.select2-container {
  width: auto !important;
  min-width: 150px;
  /* optional */
}

.select2-selection--single {
  width: auto !important;
}

.tooltip-inner {
  background-color: #0dcaf0 !important;
  font-family: "Vazirmatn" !important;
}

.select2-selection__rendered {
  padding-right: 0 !important;
}

.custom-accordion-btn::after {
  margin-left: 0;
  /* حذف فاصله پیش‌فرض */
  margin-right: auto;
  /* انتقال فلش به چپ */
}

.text-red {
  color: #DC3545;
}

.form-control[type="file"]::file-selector-button {
  content: "انتخاب فایل";
  margin-right: 0.75rem;
  margin-left: 0;
}

jdp-container {
  z-index: 2000 !important;
}

.custom-accordion-btn::after {
  margin-left: 0;
  /* حذف فاصله پیش‌فرض */
  margin-right: auto;
  /* انتقال فلش به چپ */
}

:root {
  /* --primary-color: #0d6efd;     
  --secondary-color: #6c757d;    
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;*/

  /* Additional custom colours */
  --header-bg: #2c3e50;
  --footer-bg: #1a252f;
  --body-font-color: #333;
}

.headerFooterSidebar {
  background-color: #1E3A8A !important;
  color: #FFFFFF !important;
}


/* ── رنگ‌های طلایی ── */
:root {
  --gold: #D4AF37;
}

/* ── دکمه طلایی جامد ── */
.btn-gold {
  background: var(--gold) !important;
  background-size: 200% 200%;
  border: 2px solid transparent !important;
  /* همرنگ با outline از نظر ضخامت */
  color: #3d2b00;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(212, 136, 15, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(212, 136, 15, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  background-position: 100% 100%;
  color: #3d2b00;
}

.btn-gold:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 4px 12px rgba(212, 136, 15, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

/* ── دکمه طلایی دور‌نما (outline) ── */
.btn-gold-outline {
  background: transparent !important;
  /* پس‌زمینه کاملاً شفاف */
  border: 2px solid var(--gold) !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(212, 136, 15, 0.15);
  transition: all 0.35s ease !important;
  position: relative;
  overflow: hidden;
}

.btn-gold-outline:hover {
  background-size: 200% 200% !important;
  background-position: 100% 100% !important;
  border-color: var(--gold);
  color: #3d2b00;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(212, 136, 15, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.btn-gold-outline:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 4px 12px rgba(212, 136, 15, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

/* ── فوکوس برای دسترسی‌پذیری ── */
.btn-gold:focus-visible,
.btn-gold-outline:focus-visible {
  outline: 2px solid var(--gold-end);
  outline-offset: 2px;
}


.responsive-title {
  font-size: 1.25rem;
}

@media (max-width: 576px) {
  .responsive-title {
    font-size: 1rem;
  }


}

footer.sidebar-open,
header.sidebar-open {
  margin-right: 0 ;

}

@media (min-width: 991.98px) {

  footer.sidebar-open,
  header.sidebar-open {
    margin-right: 256px ;
  }
}