@import url('https://fonts.googleapis.com/css2?family=Aclonica&display=swap');

html {
  font-size: 14px !important;
}

body {
  font-size: 1rem !important;
}

.jvm-zoom-btn.jvm-zoomin,
.jvm-zoom-btn.jvm-zoomout {
  top: 10px;
  background: #d1d5db;
  color: #111827;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
}

.slick-dots {
  display: flex !important;
}

.fc-toolbar-title {
  font-size: 24px !important;
  font-weight: 600;
}

.fc-button {
  border-color: var(--primary-600) !important;
  background: #fff !important;
  color: var(--primary-600) !important;
  font-weight: 600 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 80px !important;
}

.fc-button:hover {
  background-color: var(--primary-50) !important;
}

.fc-button-active {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}



.fc-button-active:hover {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}

.fc-button-active:focus,
.fc .fc-button-primary:not(:disabled):active:focus {
  box-shadow: none !important;
}

.fc-toolbar-chunk {
  display: flex !important;
}

.fc .fc-button-primary:focus {
  box-shadow: none !important;
}

.fc-h-event {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-h-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-v-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-daygrid-day-number {
  transition: background-color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 50%;
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
  background-color: var(--primary-100) !important;
  color: var(--primary-600) !important;
  transition: background-color 0.2s;
}

.slider-progress .active {
  transition: all 0.3s linear;
}

.slick-list {
  margin: 0 -7px;
}

.slick-slide>div {
  padding: 0 10px;
}

.center-gap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-grid {
  display: inline-grid;
}

.image-upload__boxInner.custom {
  display: flex;
  justify-content: center;
  align-items: center;
}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: unset !important;
}

/* Hide all submenus by default */
.sidebar-submenu {
  /* display: none; */
  list-style: none;
  padding-left: 20px;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  /* Adjust as needed */
}

/* Ensure list items have consistent spacing */
.sidebar-menu li {
  margin-bottom: 5px;
  /* Consistent small gap */
}


.sidebar-menu .sidebar-submenu {
  display: block;
}

/* Optional: Add transition for smooth toggle */
.sidebar-menu .dropdown .sidebar-submenu {
  transition: max-height 0.3s linear;
  overflow: hidden;
  max-height: 0px;
}

/* .sidebar-menu .dropdown.open .sidebar-submenu {
  max-height: 1000px;
} */

.sidebar-menu li>a>i {
  margin-inline-end: 0;
}

.mr-10 {
  margin-right: 10px !important;
}

/* Restoring Active Submodule State - Premium Floating Look */
.sidebar-menu .sidebar-submenu li a.active-page {
  background-color: #ffffff !important;
  color: #364e3d !important;
  /* Dark Green for visibility */
  font-weight: 700 !important;
  padding-left: 30px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  box-shadow: 0 4px 15px rgba(54, 78, 61, 0.15) !important;
  transform: translateX(5px);
}

/* Vertical indicator for active submodule */
.sidebar-menu .sidebar-submenu li a.active-page::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #364e3d;
  border-radius: 2px;
}

.me-8 {
  margin-right: 8px;
}

.gap-10 {
  display: flex;
  gap: 8px;
}

.w-33 {
  width: 33.33%;
}

.overlay::after {
  position: absolute;
  content: "";
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 100%;
  background-color: #000;
  opacity: 0.65;
  transition: all 0.3s;
  z-index: 2;
}

.overlay.active::after {
  width: 100%;
}

/* Custom Tabs Styling */
.custom-tabs.nav-tabs {
  border-bottom: 1px solid var(--neutral-200) !important;
  gap: 20px;
}

.custom-tabs .nav-link {
  color: var(--neutral-600) !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 12px 0px !important;
  position: relative;
  background: transparent !important;
}

.custom-tabs .nav-link:hover,
.custom-tabs .nav-link.active {
  color: var(--primary-600) !important;
}

.custom-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #edf1ee;
}

:root {
  --bs-nav-link-color: var(--primary-600) !important;
  --bs-nav-tabs-link-active-color: var(--primary-50) !important;
  --bs-nav-tabs-link-hover-border-color: transparent !important;
}

/* Primary Button Overrides */
.btn-primary {
  --bs-btn-color: #fff !important;
  --bs-btn-bg: #364e3d !important;
  --bs-btn-border-color: #364e3d !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #2d4133 !important;
  --bs-btn-hover-border-color: #2d4133 !important;
  --bs-btn-focus-shadow-rgb: 54, 78, 61;
  --bs-btn-active-color: #fff !important;
  --bs-btn-active-bg: #2d4133 !important;
  --bs-btn-active-border-color: #2d4133 !important;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
  --bs-btn-disabled-color: #fff !important;
  --bs-btn-disabled-bg: #364e3d !important;
  --bs-btn-disabled-border-color: #364e3d !important;
  border-radius: 6px !important;
}

.btn-hover-green:hover {
  background-color: #364e3d !important;
  border-color: #364e3d !important;
  color: #fff !important;
}

.pagination .page-item .page-link.bg-primary-600 {
  background-color: #364e3d !important;
  border-color: #364e3d !important;
  color: #fff !important;
}

.pagination .page-item .page-link:hover {
  background-color: #2d4133 !important;
  border-color: #2d4133 !important;
  color: #fff !important;
}

.pagination .page-item .page-link {
  color: #364e3d !important;
}



/* Custom background for Chapter Roles */
.bg-role-custom {
  background-color: #f4a46042 !important;
  transition: background-color 0.2s;
}

.bg-role-custom:hover {
  background-color: #f4a46070 !important;
}

/* Global Hover Effects */
.hover-border-primary:hover {
  border-color: #364e3d !important;
  box-shadow: 0 4px 12px rgba(54, 78, 61, 0.12);
  transform: translateY(-4px) scale(1.02);
}

.transition-2 {
  transition: all 0.3s ease-in-out;
}

/* Ash Button Style */
.btn-ash {
  background-color: #616e7a !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-ash:hover {
  background-color: #4a545e !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Custom Edit Button Style */
.btn-edit-custom {
  color: #ff3b30 !important;
  background-color: rgb(247 157 0 / 24%) !important;
  transition: all 0.3s ease;
}

.btn-edit-custom:hover {
  background-color: rgb(247 157 0 / 40%) !important;
  transform: translateY(-2px);
}

/* Custom Checkbox Style */
.form-check-input:checked {
  background-color: var(--primary-600) !important;
  border: 2px solid #ffffff !important;
}

.form-check-input:focus {
  border-color: var(--primary-600) !important;
  box-shadow: 0 0 0 0.25rem rgba(54, 78, 61, 0.25) !important;
}

.form-check-input {
  cursor: pointer;
  border: 1.5px solid #d1d5db !important;
  border-radius: 4px !important;
  transition: all 0.2s ease-in-out;
}

/* Force white tick visibility on all checkboxes */
.form-check-input:checked[type=checkbox] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

/* Dashboard Layout Fix */
.dashboard-main {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
}

.dashboard-main-body {
  flex: 1 0 auto !important;
  display: block !important;
  width: 100% !important;
  padding: 24px !important;
}

.d-footer {
  flex-shrink: 0 !important;
  padding: 15px 24px !important;
  background-color: var(--white) !important;
  border-top: 1px solid #e5e7eb !important;
  margin-top: auto !important;
  width: 100% !important;
}

/* Fix for weird white sections */
.row.gy-4 {
  margin-bottom: 0 !important;
}

.dashboard-main-body .card {
  margin-bottom: 24px !important;
  height: auto !important;
  /* Ensure height is auto unless specifically needed */
}

/* Ensure chart container doesn't overflow or add weird space */
.apexcharts-canvas {
  margin: 0 auto !important;
}

/* Unified Brand Overrides for Tables & Inputs */
table th,
.table th,
thead th,
table.dataTable thead th,
table.dataTable thead td,
tr th[scope="col"],
.bordered-table thead th,
.sm-table thead th {
  background-color: var(--primary-500) !important;
  color: #ffffff !important;
  border-color: var(--primary-600) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

table td,
.table td,
tbody td,
.table th,
table th {
  padding: 12px 16px !important;
  vertical-align: middle !important;
}

table td,
.table td,
tbody td,
table td span,
.table td span,
tbody td span,
table td .text-md,
.table td .text-md,
tbody td .text-md {
  font-size: 14px !important;
}

table tbody tr:nth-of-type(odd) {
  background-color: var(--primary-50) !important;
}

table tbody tr:hover {
  background-color: var(--primary-100) !important;
}

table td,
table th {
  padding: 12px 16px !important;
  vertical-align: middle !important;
}

/* MasterLayout Logo Fix */
.sidebar-logo {
  padding: 4px 16px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 1px !important;
  min-height: 65px !important;
}

.sidebar-logo img,
.sidebar.active .sidebar-logo img,
.sidebar-logo img.logo-icon {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

/* Inputs Overrides - Global Size Normalization */
.form-control,
.form-select {
  border-radius: 8px !important;
  border: 1px solid var(--neutral-300);
  background-color: #ffffff !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
}

/* Force 44px height for single-line inputs and selects */
input.form-control,
select.form-control,
.form-select,
.navbar-search input,
.react-datepicker-wrapper input {
  height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 42px !important;
  /* Vertically center text */
}

/* Special case for search inputs with icons */
.navbar-search {
  position: relative;
}

.navbar-search input {
  padding-left: 40px !important;
}

.navbar-search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--neutral-500);
  pointer-events: none;
}

/* Textarea normalization */
textarea.form-control {
  min-height: 80px !important;
  /* Give it some default space */
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.5 !important;
  height: auto !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-500) !important;
  box-shadow: 0 0 0 0.25rem var(--primary-light) !important;
  outline: none !important;
}

.pin-input-box {
  background: transparent !important;
  border: 1px solid var(--neutral-300) !important;
  border-radius: 8px !important;
  text-align: center !important;
  padding: 10px !important;
  font-size: 1.25rem !important;
}

/* Toastify Custom Styles - Standardized Theme */
.Toastify__toast {
  border-radius: 12px !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  padding: 16px !important;
  min-height: 64px !important;
}

.Toastify__toast--success {
  background-color: #ffffff !important;
  /* White background */
  color: #000000 !important;
  border-left: none !important;
}

.Toastify__toast--error {
  background-color: #ffffff !important;
  /* White background */
  color: #000000 !important;
  border-left: none !important;
}

.Toastify__toast-body {
  color: #000000 !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.Toastify__toast-icon {
  width: 24px !important;
  margin-inline-end: 12px !important;
}

/* Ensure icons match the theme */
.Toastify__toast--success .Toastify__toast-icon svg {
  fill: #364e3d !important;
}

.Toastify__toast--error .Toastify__toast-icon svg {
  fill: #dc3545 !important;
}

.Toastify__close-button {
  color: #000000 !important;
  opacity: 0.5 !important;
}

.Toastify__close-button:hover {
  opacity: 1 !important;
}

.Toastify__progress-bar--success {
  background: #364e3d !important;
}

.Toastify__progress-bar--error {
  background: #dc3545 !important;
}

/* Remove autofill blue background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #F8F9FA inset !important;
  -webkit-text-fill-color: #4B5563 !important;
}

/* Auth Page Input Styles */
.auth-input-bg {
  background-color: #F8F9FA !important;
}

.pin-input-box {
  height: 44px !important;
  max-width: 70px !important;
  background-color: #F8F9FA !important;
  border: 1px solid #ced4da !important;
  border-radius: 12px !important;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0 !important;
}

.pin-input-box:focus {
  background-color: #fff !important;
  border-color: #002B5B !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 43, 91, 0.1) !important;
  outline: none;
}

.ps-56-px {
  padding-left: 56px !important;
}

.auth-icon-left {
  left: 12px !important;
  margin-left: 0 !important;
}

/* Premium Checkbox with Tick (No circle) */
.premium-checkbox {
  width: 20px !important;
  height: 20px !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 4px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  position: relative !important;
  background-color: #fff !important;
  transition: all 0.2s ease !important;
  margin-top: 0 !important;
}

.premium-checkbox:checked {
  background-color: #364e3d !important;
}

.premium-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.premium-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(54, 78, 61, 0.1) !important;
  outline: none !important;
}

/* Status Toggle Button - Premium Look */
.status-toggle-btn {
  width: 95px;
  height: 30px;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  color: white !important;
  padding: 0;
}

.toggle-text {
  text-transform: capitalize !important;
}

.badge {
  text-transform: capitalize !important;
}

.status-toggle-btn.active {
  background-color: #364e3d !important;
  box-shadow: 0 4px 12px rgba(54, 78, 61, 0.25);
}

.status-toggle-btn.inactive {
  background-color: #d92d20 !important;
  box-shadow: 0 4px 12px rgba(217, 45, 32, 0.25);
}

.status-toggle-btn .toggle-circle {
  width: 6px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  position: absolute;
  top: 5px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-toggle-btn.active .toggle-circle {
  right: 8px;
}

.status-toggle-btn.inactive .toggle-circle {
  left: 8px;
}

.status-toggle-btn .toggle-text {
  width: 100%;
  text-align: center;
}

.status-toggle-btn.active .toggle-text {
  padding-right: 18px;
}

.status-toggle-btn.inactive .toggle-text {
  padding-left: 18px;
}