/* Inter Font Family Override */
* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
  
/* Preserve monospace for code elements */
code, pre, kbd, samp, .monospace {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace !important;
}

/* Spinning animation for loading states */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 2s linear infinite;
}

.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;
  /* Adjust as needed */
}

.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;
}

.sidebar-menu .sidebar-submenu li a {
  gap: 12px;
}

.sidebar-menu .sidebar-submenu li > .active-page {
  background-color: var(--button-secondary);
  color: var(--text-primary-light);
}

.sidebar-menu li > a.active-page:hover {
  color: var(--text-primary-light);
}
.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%;
}

.Gallery-masonry {
  background: #000;
  z-index: 99999;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
}

/* Fix icon alignment in buttons */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn svg,
.btn i {
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Ensure icons in buttons are properly sized */
.btn .iconify {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* WedX Custom Color Scheme - Gold, Black, White, Grey */
:root {
  /* Primary Colors - Gold (#b79a09) */
  --primary-50: #fef9e6;
  --primary-100: #fef3cc;
  --primary-200: #fde799;
  --primary-300: #fcdb66;
  --primary-400: #d9b833;
  --primary-500: #c9a81a;
  --primary-600: #b79a09;
  --primary-700: #9a8208;
  --primary-800: #7d6906;
  --primary-900: #5e5005;
  
  /* Override brand colors with gold */
  --brand: #b79a09;
  --button-secondary: #fef9e6;
  --primary-light: rgba(183, 154, 9, 0.15);
  --primary-light-white: rgba(183, 154, 9, 0.25);
  
  /* Keep Success, Danger, Warning, Info subtle */
  --success-main: #4b5563;
  --success-600: #4b5563;
  --danger-main: #dc2626;
  --danger-600: #dc2626;
  --warning-main: #b79a09;
  --warning-600: #b79a09;
  --info-main: #6b7280;
  --info-600: #6b7280;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --primary-50: #3d3308;
  --primary-600: #d9b833;
  --brand: #d9b833;
}

/* Button Color Overrides - Gold Theme */
.btn-primary {
  background-color: #b79a09 !important;
  border-color: #b79a09 !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #9a8208 !important;
  border-color: #9a8208 !important;
  color: #ffffff !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: #7d6906 !important;
  border-color: #7d6906 !important;
}

.btn-outline-primary {
  background-color: transparent !important;
  border-color: #b79a09 !important;
  color: #b79a09 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #fef9e6 !important;
  border-color: #b79a09 !important;
  color: #b79a09 !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #fef3cc !important;
  border-color: #b79a09 !important;
  color: #b79a09 !important;
}

/* Secondary and other button states */
.btn-secondary {
  background-color: #6b7280 !important;
  border-color: #6b7280 !important;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: #4b5563 !important;
  border-color: #4b5563 !important;
}

/* Badge and tag colors */
.badge-primary,
.bg-primary-600 {
  background-color: #b79a09 !important;
}

.text-primary-600 {
  color: #b79a09 !important;
}

.border-primary-600 {
  border-color: #b79a09 !important;
}

.bg-primary-50 {
  background-color: #fef9e6 !important;
}

/* Link colors */
a.text-primary-600,
.text-primary {
  color: #b79a09 !important;
}

a.text-primary-600:hover,
.text-primary:hover {
  color: #9a8208 !important;
}

/* Fix checkbox and label alignment */
.form-check {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.form-check-input {
  margin-top: 0 !important;
  flex-shrink: 0 !important;
}

.form-check-label {
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  line-height: 1.5 !important;
}

/* Custom Instant Tooltips */
[title] {
  position: relative;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f2937;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 999999;
  pointer-events: none;
  margin-bottom: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  z-index: 999999;
  pointer-events: none;
}

/* Prevent tooltip cutoff in tables and cards */
.table-responsive,
.card-body {
  overflow: visible !important;
}

.table-responsive .table {
  overflow: visible !important;
}

/* Special positioning for checkboxes in first column */
td:first-child [title]:hover::after,
th:first-child [title]:hover::after {
  left: 0;
  transform: translateX(0);
}

td:first-child [title]:hover::before,
th:first-child [title]:hover::before {
  left: 12px;
  transform: translateX(0) translateY(8px);
}

/* Smooth Sidebar Transitions */
.sidebar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar * {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-logo img {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-menu li a span {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-main {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Status dropdown styled as badge */
.status-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none !important;
  padding: 4px 24px 4px 12px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px !important;
  outline: none !important;
  box-shadow: none !important;
}

.status-select:focus {
  box-shadow: 0 0 0 2px rgba(183, 154, 9, 0.2) !important;
  outline: none !important;
}

.status-select.status-not-sent {
  background-color: #e5e7eb !important;
  color: #374151 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 8l-4-4h8z'/%3E%3C/svg%3E") !important;
}

.status-select.status-sent {
  background-color: #dbeafe !important;
  color: #1e40af !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e40af' d='M6 8l-4-4h8z'/%3E%3C/svg%3E") !important;
}

/* Date and time input improvements */
input[type="date"],
input[type="time"] {
  cursor: pointer !important;
  position: relative !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Add subtle background on hover for date/time inputs */
input[type="date"]:hover,
input[type="time"]:hover {
  background-color: #fafafa !important;
  border-color: #b79a09 !important;
}

/* Focus state for date/time inputs */
input[type="date"]:focus,
input[type="time"]:focus {
  border-color: #b79a09 !important;
  box-shadow: 0 0 0 3px rgba(183, 154, 9, 0.1) !important;
}

/* Hover Scale Animation */
.hover-scale {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hover-scale:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
