/* ==========================================================================
   POI (Politicians of India) — Central Design System
   All form labels, placeholders, inputs, selects, and calendar styles
   are controlled from this file via CSS custom properties.
   
   ══ HOW TO CUSTOMISE ══════════════════════════════════════════════════
   Edit the variables in the  :root  block below.
   Changes here automatically flow through to every page that imports
   this stylesheet — no HTML editing required.
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   1. ROOT DESIGN TOKENS
   ────────────────────────────────────────────────────────────────────────── */
:root {
  /* ---------- Fonts ---------- */
  --font-primary: "Outfit", "Inter", -apple-system, sans-serif;

  /* ---------- Typography Scale ---------- */
  --text-xxs: 0.625rem;
  /* 10px */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */

  /* ---------- Brand Palette ---------- */
  --poi-saffron: #f97316;
  --poi-saffron-light: #ffedd5;
  --poi-saffron-dark: #ea580c;

  --poi-green: #16a34a;
  --poi-green-light: #dcfce7;
  --poi-green-dark: #15803d;

  --poi-navy: #1e3a8a;
  --poi-navy-light: #dbeafe;
  --poi-navy-dark: #1d4ed8;

  --poi-gold: #c5a059;
  /* main gold accent */
  --poi-gold-light: #fef9c3;
  --poi-gold-dark: #854d0e;
  --poi-gold-glow: rgba(197, 160, 89, 0.15);
  --gold-rgb: 197, 160, 89;

  /* ---------- Neutral Slate Scale ---------- */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* ---------- Surface / Background ---------- */
  --poi-bg: #f8fafc;
  --poi-surface: #ffffff;
  --poi-border: #e2e8f0;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* ---------- Transitions ---------- */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ══════════════════════════════════════════════════════════════════
       FORM DESIGN TOKENS — edit these to restyle ALL form elements
       ══════════════════════════════════════════════════════════════════ */

  /* --- Form Label --- */
  --label-font-size: 13px;
  /* 11px  — change to e.g. 0.75rem for 12px */
  --label-font-weight: 100;
  /* 300 = light · 600 = semi-bold · 700 = bold */
  --label-color: #64748b;
  /* slate-500. Use #1e293b for dark, #c5a059 for gold */
  --label-text-transform: uppercase;
  /* "uppercase" | "none" | "capitalize" */
  --label-letter-spacing: 0.07em;
  /* 0em = none  · 0.1em = wide */
  --label-margin-bottom: 0.45rem;

  /* --- Placeholder text inside inputs --- */
  --placeholder-color: #94a3b8;
  /* slate-400 — lighter = subtler hint */
  --placeholder-font-size: 0.875rem;
  /* matches input font-size */
  --placeholder-font-weight: 300;
  /* lighter than typed text */
  --placeholder-opacity: 1;

  /* --- Input / Textarea base --- */
  --input-bg: #ffffff;
  --input-color: #334155;
  /* slate-700 — typed text color */
  --input-font-size: 13px;
  /* 14px */
  --input-font-weight: 400;
  --input-border: 1.5px solid #e2e8f0;
  --input-border-radius: 0.75rem;
  /* 12px */
  --input-padding: 0.6rem 1rem;
  --input-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);

  /* --- Input hover & focus --- */
  --input-border-hover: #c5a059;
  --input-border-focus: #c5a059;
  --input-shadow-focus: 0 0 0 4px rgba(197, 160, 89, 0.15);

  /* --- Select / Dropdown --- */
  --select-bg: #ffffff;
  --select-color: var(--input-color); /* ← same as textarea/input */
  --select-font-size: var(--input-font-size); /* ← same as textarea/input */
  --select-font-weight: var(--input-font-weight);
  --select-border: 1.5px solid #e2e8f0;
  --select-border-radius: 0.75rem;
  --select-padding: 0.6rem 2.5rem 0.6rem 1rem;
  --select-arrow-color: %2364748b;
  /* URL-encoded slate-500 — used in SVG */

  /* --- Input with left icon (.input-premium-new) --- */
  --icon-input-padding-left: 2.25rem;
  /* space for the icon */
  --icon-color: #94a3b8;
  /* slate-400 — resting icon tint */
  --icon-color-focus: #c5a059;
  /* gold when active */
}

/* ──────────────────────────────────────────────────────────────────────────
   GLOBAL FONT — applies --font-primary to every element on every page.
   Change --font-primary in :root above to restyle the entire site at once.
   ────────────────────────────────────────────────────────────────────────── */
html,
body {
  font-family: var(--font-primary) !important;
}

/* Explicit inheritance so inputs, selects, buttons, textareas don't
   fall back to the browser's default system font */
*,
*::before,
*::after {
  font-family: inherit;
  box-sizing: border-box;
}

/* High-specificity catch for elements Bootstrap / DataTables override */
input,
textarea,
select,
button,
label,
th,
td,
.modal,
.dropdown-menu,
.tooltip,
.popover {
  font-family: var(--font-primary) !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. TYPOGRAPHY UTILITIES
   ────────────────────────────────────────────────────────────────────────── */
.text-xxs {
  font-size: var(--text-xxs) !important;
}

.text-xs {
  font-size: var(--text-xs) !important;
}

.text-sm {
  font-size: var(--text-sm) !important;
}

.text-base {
  font-size: var(--text-base) !important;
}

.text-lg {
  font-size: var(--text-lg) !important;
}

.text-xl {
  font-size: var(--text-xl) !important;
}

.text-2xl {
  font-size: var(--text-2xl) !important;
}

.text-3xl {
  font-size: var(--text-3xl) !important;
}

.text-4xl {
  font-size: var(--text-4xl) !important;
}

.text-5xl {
  font-size: var(--text-5xl) !important;
}

.fw-thin {
  font-weight: 100 !important;
}

.fw-light {
  font-weight: 300 !important;
}

.fw-normal {
  font-weight: 400 !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-extrabold {
  font-weight: 800 !important;
}

.fw-black {
  font-weight: 900 !important;
}

.text-slate-muted {
  color: var(--slate-500) !important;
}

.text-slate-dark {
  color: var(--slate-800) !important;
}

.text-slate-heading {
  color: var(--slate-900) !important;
}

.tracking-tight {
  letter-spacing: -0.025em !important;
}

.tracking-wide {
  letter-spacing: 0.025em !important;
}

.tracking-wider {
  letter-spacing: 0.05em !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. COLOUR UTILITIES
   ────────────────────────────────────────────────────────────────────────── */
.text-saffron {
  color: var(--poi-saffron) !important;
}

.text-saffron-dark {
  color: var(--poi-saffron-dark) !important;
}

.text-green {
  color: var(--poi-green) !important;
}

.text-green-dark {
  color: var(--poi-green-dark) !important;
}

.text-navy {
  color: var(--poi-navy) !important;
}

.text-navy-dark {
  color: var(--poi-navy-dark) !important;
}

.text-gold {
  color: var(--poi-gold) !important;
}

.text-gold-dark {
  color: var(--poi-gold-dark) !important;
}

.bg-saffron-light {
  background-color: var(--poi-saffron-light) !important;
}

.bg-green-light {
  background-color: var(--poi-green-light) !important;
}

.bg-navy-light {
  background-color: var(--poi-navy-light) !important;
}

.bg-gold-light {
  background-color: var(--poi-gold-light) !important;
}

.bg-slate-light {
  background-color: var(--slate-50) !important;
}

.bg-slate-100 {
  background-color: var(--slate-100) !important;
}

.gradient-saffron {
  background: linear-gradient(
    135deg,
    var(--poi-saffron) 0%,
    var(--poi-saffron-dark) 100%
  ) !important;
}

.gradient-green {
  background: linear-gradient(
    135deg,
    var(--poi-green) 0%,
    var(--poi-green-dark) 100%
  ) !important;
}

.gradient-navy {
  background: linear-gradient(
    135deg,
    var(--poi-navy) 0%,
    var(--poi-navy-dark) 100%
  ) !important;
}

.gradient-gold {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  ) !important;
}

.gradient-glass {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ──────────────────────────────────────────────────────────────────────────
   4. FORM LABELS — controlled by --label-* variables above
   ────────────────────────────────────────────────────────────────────────── */
.form-label-premium {
  font-size: var(--label-font-size) !important;
  font-weight: var(--label-font-weight) !important;
  color: var(--label-color) !important;
  text-transform: var(--label-text-transform) !important;
  letter-spacing: var(--label-letter-spacing) !important;
  margin-bottom: var(--label-margin-bottom) !important;
  display: block;
}

/* Value display (for detail read-only fields/modals) */
.form-value-premium {
  font-size: var(--input-font-size) !important;
  font-weight: 100 !important;
  color: var(--slate-800) !important;
  line-height: 1.5;
}

/* Required field star */
.required-asterisk {
  color: #dc3545;
  font-weight: 700;
  margin-left: 2px;
}

.required-fields-note {
  font-size: var(--label-font-size);
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.required-fields-note .required-asterisk {
  font-size: calc(var(--label-font-size) + 2px);
  vertical-align: middle;
}

/* ──────────────────────────────────────────────────────────────────────────
   5. INPUTS & TEXTAREAS — controlled by --input-* variables above
   ────────────────────────────────────────────────────────────────────────── */
.form-control-premium,
textarea.form-control-premium {
  background-color: var(--input-bg) !important;
  border: var(--input-border) !important;
  border-radius: var(--input-border-radius) !important;
  padding: var(--input-padding) !important;
  font-size: var(--input-font-size) !important;
  font-weight: var(--input-font-weight) !important;
  color: var(--input-color) !important;
  width: 100%;
  transition: all var(--transition-normal);
  box-shadow: var(--input-shadow);
}

/* Placeholder */
.form-control-premium::placeholder {
  color: var(--placeholder-color) !important;
  font-size: var(--placeholder-font-size) !important;
  font-weight: var(--placeholder-font-weight) !important;
  opacity: var(--placeholder-opacity) !important;
}

/* Hover */
.form-control-premium:hover {
  border-color: var(--input-border-hover) !important;
}

/* Focus */
.form-control-premium:focus {
  border-color: var(--input-border-focus) !important;
  box-shadow: var(--input-shadow-focus) !important;
  outline: none;
}

/* Validation error state */
.form-control-premium.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* File upload button styling */
input[type="file"].form-control-premium {
  padding: 0.4rem 0.5rem !important;
}

input[type="file"].form-control-premium::-webkit-file-upload-button {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  );
  color: white;
  border: none;
  padding: 0.4rem 1.25rem;
  border-radius: 0.5rem;
  margin-right: 1rem;
  cursor: pointer;
  font-weight: 300;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
}

input[type="file"].form-control-premium::-webkit-file-upload-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--poi-gold-glow);
}

/* Hide native calendar / clock pickers */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   6. SELECT / DROPDOWN — controlled by --select-* variables above
   ────────────────────────────────────────────────────────────────────────── */
.form-select-premium,
select.form-control-premium {
  background-color: var(--select-bg) !important;
  border: var(--select-border) !important;
  border-radius: var(--select-border-radius) !important;
  padding: var(--select-padding) !important;
  font-size: var(--input-font-size) !important; /* matches textarea/input */
  font-weight: var(--input-font-weight) !important;
  color: var(--input-color) !important; /* matches textarea/input */
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  /* Hide native arrow, use custom SVG */
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
}

/* Placeholder option (first option with no value) */
.form-select-premium option[value=""],
select.form-control-premium option[value=""] {
  color: var(--placeholder-color);
}

/* Hover */
.form-select-premium:hover,
select.form-control-premium:hover {
  border-color: var(--input-border-hover) !important;
}

/* Focus */
.form-select-premium:focus,
select.form-control-premium:focus {
  border-color: var(--input-border-focus) !important;
  box-shadow: var(--input-shadow-focus) !important;
  outline: none;
}

/* Validation error */
.form-select-premium.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Disabled */
.form-select-premium:disabled,
select.form-control-premium:disabled {
  background-color: var(--slate-100) !important;
  color: var(--slate-400) !important;
  cursor: not-allowed;
  border-color: var(--slate-200) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
}

/* Optional: wrapper for icon + select combo */
.select-wrapper {
  position: relative;
  width: 100%;
}

/* ──────────────────────────────────────────────────────────────────────────
   7. ICON-LEFT INPUT (.input-premium-new) — controlled by --icon-* vars
   ────────────────────────────────────────────────────────────────────────── */
.input-wrapper {
  position: relative;
}

.input-icon-left {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--icon-color);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition-normal);
}

.input-premium-new {
  width: 100%;
  background: var(--input-bg) !important;
  border: var(--input-border) !important;
  border-radius: var(--input-border-radius) !important;
  padding: 0.6rem 0.85rem 0.6rem var(--icon-input-padding-left) !important;
  font-size: var(--input-font-size) !important;
  font-weight: var(--input-font-weight) !important;
  color: var(--input-color) !important;
  transition: all var(--transition-normal);
}

.input-premium-new::placeholder {
  color: var(--placeholder-color) !important;
  font-size: var(--placeholder-font-size) !important;
  font-weight: var(--placeholder-font-weight) !important;
  opacity: var(--placeholder-opacity) !important;
}

.input-premium-new:focus {
  border-color: var(--input-border-focus) !important;
  box-shadow: var(--input-shadow-focus) !important;
  outline: none;
}

/* Icon glows gold on focus */
.input-premium-new:focus ~ .input-icon-left {
  color: var(--icon-color-focus) !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   8. CUSTOM ANIMATED SELECT (JS-powered dropdown)
   ────────────────────────────────────────────────────────────────────────── */
.select-hidden {
  display: none !important;
}

.custom-select-trigger {
  background: var(--select-bg);
  border: var(--select-border);
  border-radius: var(--select-border-radius);
  padding: var(--select-padding);
  font-size: var(--input-font-size); /* ← matches textarea/input */
  font-weight: var(--input-font-weight);
  color: var(--input-color); /* ← matches textarea/input */
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  min-height: 43px;
  user-select: none;
}

.custom-select-trigger.has-icon {
  padding-left: 2.5rem;
}

.custom-select-trigger i:not(.custom-dropdown-arrow) {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--icon-color);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition-normal);
}

.custom-select-trigger:focus,
.custom-select-trigger.active {
  border-color: var(--input-border-focus);
  outline: none;
  box-shadow: var(--input-shadow-focus);
}

.custom-select-trigger:focus i:not(.custom-dropdown-arrow),
.custom-select-trigger.active i:not(.custom-dropdown-arrow) {
  color: var(--icon-color-focus);
}

.custom-select-selected-text {
  font-weight: var(--select-font-weight);
}

.custom-dropdown-arrow {
  font-size: 11px;
  color: var(--slate-400);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.custom-select-trigger.active .custom-dropdown-arrow {
  transform: rotate(180deg);
  color: var(--poi-gold);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1060;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.5rem 0;
  max-height: 250px;
  overflow-y: auto;
}

.custom-select-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select-item {
  padding: 0.7rem 1.25rem;
  font-size: var(--select-font-size);
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-select-item:hover {
  background-color: var(--poi-gold) !important;
  color: #ffffff !important;
}

.custom-select-item.selected {
  background-color: rgba(var(--gold-rgb), 0.08);
  color: var(--poi-gold);
  font-weight: 600;
}

.custom-select-item.selected:hover {
  background-color: var(--poi-gold) !important;
  color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   9. FLATPICKR CALENDAR (date picker)
   ────────────────────────────────────────────────────────────────────────── */
.flatpickr-calendar {
  border-radius: 1.25rem !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(197, 160, 89, 0.2) !important;
  background: #fff !important;
  padding: 5px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  ) !important;
  border-color: transparent !important;
  color: white !important;
  box-shadow: 0 4px 10px var(--poi-gold-glow) !important;
}

.flatpickr-day.inRange {
  background: rgba(var(--gold-rgb), 0.1) !important;
  box-shadow: none !important;
}

.flatpickr-months .flatpickr-month {
  color: var(--slate-800) !important;
  fill: var(--slate-800) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 800 !important;
}

.flatpickr-weekday {
  color: var(--slate-400) !important;
  font-weight: 700 !important;
}

.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange) {
  background: rgba(var(--gold-rgb), 0.08) !important;
  border-color: var(--poi-gold) !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   10. FULLCALENDAR (schedule / calendar page)
   ────────────────────────────────────────────────────────────────────────── */
.calendar-main-container {
  background: var(--poi-surface);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: box-shadow var(--transition-normal);
}

.calendar-main-container:hover {
  box-shadow: var(--shadow-lg);
}

.fc-theme-standard .fc-scrollgrid {
  border: none !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border-color: var(--slate-100) !important;
}

.fc-toolbar-title {
  font-family: var(--font-primary);
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.fc-button {
  background-color: var(--poi-surface) !important;
  border: 1.5px solid var(--slate-200) !important;
  color: var(--slate-600) !important;
  font-family: var(--font-primary);
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  transition: all var(--transition-fast) !important;
  box-shadow: var(--shadow-sm) !important;
}

.fc-button:hover {
  background-color: var(--slate-50) !important;
  border-color: var(--slate-300) !important;
  color: var(--slate-900) !important;
}

.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active {
  background-color: var(--poi-gold-light) !important;
  border-color: var(--poi-gold) !important;
  color: var(--poi-gold-dark) !important;
  box-shadow: none !important;
}

.fc-today-button {
  margin-right: 1.25rem !important;
}

.fc-day-today {
  background-color: rgba(var(--gold-rgb), 0.04) !important;
}

.fc-day-today .fc-daygrid-day-number {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  ) !important;
  color: var(--poi-surface) !important;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  box-shadow: 0 4px 8px var(--poi-gold-glow);
}

.fc-daygrid-day-number {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--slate-600);
  padding: 4px;
  margin: 4px;
  text-decoration: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.fc-daygrid-day-number:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
  text-decoration: none;
}

.fc-col-header-cell-cushion {
  color: var(--slate-500) !important;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0 !important;
  text-decoration: none !important;
}

.fc-day-today .fc-col-header-cell-cushion {
  color: var(--poi-gold) !important;
}

.fc-event {
  cursor: pointer;
  border-radius: 8px !important;
  border: none !important;
  padding: 4px 6px;
  margin-bottom: 3px !important;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast) !important;
}

.fc-event:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.fc-event.event-high {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #fff !important;
}

.fc-event.event-medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #fff !important;
}

.fc-event.event-low {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  ) !important;
  color: #fff !important;
}

.fc-event.event-holiday {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  color: #fff !important;
}

.fc-daygrid-event .fc-event-title {
  white-space: normal !important;
  font-weight: 600 !important;
  font-size: 11px;
  line-height: 1.3;
}

.fc-daygrid-event .fc-event-time {
  font-weight: 700;
  font-size: 9px;
  opacity: 0.95;
  margin-bottom: 2px;
}

#mini-calendar {
  font-size: 11px;
}

#mini-calendar .fc-toolbar-title {
  font-size: var(--text-sm) !important;
  font-weight: 800 !important;
  color: var(--slate-800) !important;
}

#mini-calendar .fc-button {
  background: transparent !important;
  border: none !important;
  color: var(--slate-500) !important;
  padding: 2px 6px !important;
  box-shadow: none !important;
}

#mini-calendar .fc-button:hover {
  background-color: var(--slate-100) !important;
  border-radius: 50%;
}

#mini-calendar .fc-daygrid-day-number,
#mini-calendar .fc-day-today .fc-daygrid-day-number {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

/* ──────────────────────────────────────────────────────────────────────────
   11. PREMIUM FORM GROUP & MODAL WRAPPERS
   ────────────────────────────────────────────────────────────────────────── */
.form-group-premium {
  margin-bottom: 1.5rem;
}

.modal-content-premium {
  border-radius: 24px !important;
  border: none !important;
  box-shadow: var(--shadow-xl) !important;
  overflow: hidden;
}

.modal-header-premium {
  background: var(--poi-surface);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--slate-100);
}

.modal-body-premium {
  padding: 2rem;
  background: var(--poi-surface);
}

/* ──────────────────────────────────────────────────────────────────────────
   12. BUTTON DESIGN SYSTEM — reusable across all pages
   ══════════════════════════════════════════════════════════════════════════

   AVAILABLE CLASSES:
   • .btn-submit-gold        — Primary submit / confirm (gold gradient)
   • .btn-submit-gold.sm     — Smaller variant
   • .btn-submit-gold.lg     — Larger / full-width variant
   • .btn-reset-outline      — Cancel / reset (outline danger)
   • .btn-secondary-slate    — Secondary action (slate / dark)
   • .btn-outline-gold       — Outlined gold
   • .btn-icon-only          — Square icon-only button
   • .btn-premium            — Legacy alias (same as btn-submit-gold)

   TOKEN OVERRIDES (in :root):
   --btn-submit-radius, --btn-submit-font-size, --btn-submit-padding,
   --btn-submit-letter-spacing
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Button design tokens — edit here to change ALL buttons */
  --btn-submit-radius: 0.75rem;
  --btn-submit-font-size: 0.7rem;
  --btn-submit-font-weight: 700;
  --btn-submit-letter-spacing: 0.1em;
  --btn-submit-padding: 0.85rem 2.5rem;
  --btn-submit-padding-sm: 0.55rem 1.5rem;
  --btn-submit-padding-lg: 1rem 3rem;
  --btn-submit-min-width: 160px;
  --btn-submit-gap: 0.65rem;
  --btn-submit-shadow: 0 8px 18px -4px rgba(197, 160, 89, 0.3);
  --btn-submit-shadow-hover: 0 14px 28px -8px rgba(197, 160, 89, 0.45);
  --btn-submit-shadow-active: 0 4px 10px -2px rgba(197, 160, 89, 0.25);
}

/* ── BASE: shared button foundation ──────────────────────────────────────── */
.btn-submit-gold,
.btn-reset-outline,
.btn-secondary-slate,
.btn-outline-gold,
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-submit-gap);
  border-radius: var(--btn-submit-radius);
  font-size: var(--btn-submit-font-size);
  font-weight: var(--btn-submit-font-weight);
  letter-spacing: var(--btn-submit-letter-spacing);
  text-transform: uppercase;
  padding: var(--btn-submit-padding);
  min-width: var(--btn-submit-min-width);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-submit-gold i,
.btn-reset-outline i,
.btn-secondary-slate i,
.btn-outline-gold i,
.btn-premium i {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── VARIANT 1: Submit / Confirm — Gold Gradient (PRIMARY) ───────────────── */
.btn-submit-gold,
.btn-premium {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  );
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--btn-submit-shadow);
}

.btn-submit-gold:hover,
.btn-premium:hover {
  color: #ffffff;
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--btn-submit-shadow-hover);
}

.btn-submit-gold:active,
.btn-premium:active {
  transform: translateY(0) scale(1);
  box-shadow: var(--btn-submit-shadow-active);
  filter: brightness(0.97);
}

.btn-submit-gold:focus-visible,
.btn-premium:focus-visible {
  outline: 3px solid var(--poi-gold);
  outline-offset: 3px;
}

/* Size modifiers */
.btn-submit-gold.sm {
  padding: var(--btn-submit-padding-sm) !important;
  font-size: 0.65rem;
  min-width: 100px;
}

.btn-submit-gold.lg {
  padding: var(--btn-submit-padding-lg) !important;
  font-size: 0.75rem;
  min-width: 220px;
}

/* Full-width helper */
.btn-submit-gold.w-full,
.btn-submit-gold.d-block {
  width: 100%;
  margin: 0;
}

/* ── VARIANT 2: Cancel / Reset — Outline Danger ──────────────────────────── */
.btn-reset-outline {
  background: transparent;
  color: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.08);
}

.btn-reset-outline:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

.btn-reset-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

/* ── VARIANT 3: Secondary — Dark Slate ───────────────────────────────────── */
.btn-secondary-slate {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(30, 41, 59, 0.2);
}

.btn-secondary-slate:hover {
  color: #ffffff;
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(30, 41, 59, 0.3);
}

.btn-secondary-slate:active {
  transform: translateY(0);
}

/* ── VARIANT 4: Outline Gold ──────────────────────────────────────────────── */
.btn-outline-gold {
  background: transparent;
  color: var(--poi-gold);
  border-color: var(--poi-gold);
  box-shadow: none;
}

.btn-outline-gold:hover {
  background: var(--poi-gold);
  color: #ffffff;
  box-shadow: var(--btn-submit-shadow);
  transform: translateY(-1px);
}

.btn-outline-gold:active {
  transform: translateY(0);
}

/* ── VARIANT 5: Icon-only square button ──────────────────────────────────── */
.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: unset;
  padding: 0;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1.5px solid var(--slate-200);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-only:hover {
  background: var(--poi-gold);
  color: #ffffff;
  border-color: var(--poi-gold);
  transform: translateY(-1px);
  box-shadow: var(--btn-submit-shadow);
}

/* ── Disabled state (all variants) ──────────────────────────────────────── */
.btn-submit-gold:disabled,
.btn-reset-outline:disabled,
.btn-secondary-slate:disabled,
.btn-outline-gold:disabled,
.btn-premium:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Loading spinner state ────────────────────────────────────────────────── */
.btn-submit-gold.loading,
.btn-premium.loading {
  pointer-events: none;
  position: relative;
}

.btn-submit-gold.loading::after,
.btn-premium.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   13. MICRO-ANIMATIONS & HOVER UTILITIES
   ────────────────────────────────────────────────────────────────────────── */
.hover-lift {
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 15px var(--poi-gold-glow);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(var(--gold-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0);
  }
}

.pulse-indicator {
  animation: pulse-glow 2s infinite;
}

/* ──────────────────────────────────────────────────────────────────────────
   14. Z-INDEX ACTIVE HELPER (for dropdown stacking)
   ────────────────────────────────────────────────────────────────────────── */
.position-relative.z-index-active,
.input-wrapper.z-index-active,
.form-group-premium.z-index-active,
.dt-filter-field.z-index-active {
  z-index: 1050 !important;
  position: relative !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   15. FORM ALIGNMENT FIXES — icon-input, label-input height consistency
   ────────────────────────────────────────────────────────────────────────── */

/* Ensure all icon-left inputs have uniform height */
.form-control-premium,
.form-select-premium,
.input-premium-new {
  min-height: 42px;
  box-sizing: border-box;
}

/* Inputs with Bootstrap ps-5 (left-padded for icons via Bootstrap's position-absolute) */
.form-control-premium.ps-5 {
  padding-left: 2.75rem !important;
}

/* Align icon vertically inside Bootstrap position-relative wrappers */
.position-relative > .bi,
.position-relative > i.bi {
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

/* Select with ps-5 icon */
.form-select-premium.ps-5 {
  padding-left: 2.75rem !important;
}

/* Uniform gap between rows in modals */
.modal-body .row.g-3 > [class*="col-"] {
  padding-bottom: 0;
}

/* Section divider labels inside forms (e.g. POLITICAL DETAILS) */
.form-section-heading {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--slate-100);
}

/* Collapsed expandable user-create box consistent styling */
#createUserBox,
#apptAssociationFields {
  border-radius: 0.85rem !important;
}

/* Remove emoji/icon overlap in select with ps-5 */
.position-relative > select.form-select-premium,
.position-relative > select.form-control-premium {
  padding-left: 2.75rem !important;
  background-position: right 14px center !important;
}

/* Recent Activity column consistent font */
.modal-body .table-sm td,
.modal-body .table-sm th {
  font-size: 13px;
  font-weight: 100 !important;
  vertical-align: middle;
}

/* Footer button row alignment */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────────────
   16. DATATABLES TOOLBAR BUTTONS ALIGNMENT (Filter, Excel, PDF)
   ────────────────────────────────────────────────────────────────────────── */

/* Centralized Filter button: matches Excel/PDF button dimensions, height, padding, and font metrics */
.btn-dt-filter {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
  border: none !important;
  margin: 0 !important;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  ) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.btn-dt-filter:hover,
.btn-dt-filter.is-open {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.45) !important;
  color: #ffffff !important;
}

.btn-dt-filter .filter-badge {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--poi-gold-dark);
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  margin-left: 3px;
}

.btn-dt-filter.has-active-filters .filter-badge {
  display: inline-block;
}

/* ──────────────────────────────────────────────────────────────────────────
   17. APPOINTMENT TABLE & DATATABLES CUSTOM DESIGN
   ────────────────────────────────────────────────────────────────────────── */

.appointment-table-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal scroll container for the table */
.appointment-table-card .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--poi-gold) #f1f5f9;
}

.appointment-table-card .table-responsive::-webkit-scrollbar {
  height: 6px;
}

.appointment-table-card .table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.appointment-table-card .table-responsive::-webkit-scrollbar-thumb {
  background: var(--poi-gold);
  border-radius: 10px;
}

.appointment-table-card .table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--poi-gold-dark);
}

.table-premium tr {
  transition: all 0.2s ease;
  line-height: 1.2;
}

.table-premium tbody tr:hover {
  background-color: rgba(var(--gold-rgb), 0.02) !important;
}

.table-premium thead th {
  padding: 0.5rem 0.4rem !important;
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  background: #dfdfdf;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Remove DataTables sorting arrows */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  background-image: none !important;
}

table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_desc::after {
  display: none !important;
  content: none !important;
}

.table-premium tbody td {
  padding: 0.4rem 0.4rem !important;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #ebebeb;
  line-height: 1.5;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #ca8a04;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--poi-gold-dark);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-approved {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-pending {
  background: rgba(197, 160, 89, 0.1);
  color: var(--poi-gold);
}

.badge-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.action-btn {
  width: 24px;
  height: 24px;
  font-size: 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  color: #64748b;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #f8fafc;
  color: var(--poi-gold);
  border-color: var(--poi-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.appointment-user-avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--poi-gold);
  overflow: hidden;
  background: #f8fafc;
}

.appointment-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.appointment-user-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
}

/* Appointments table toolbar */
.appointment-table-card .dataTables_wrapper > .dt-toolbar,
.appointment-table-card .dataTables_wrapper > .d-flex:first-of-type {
  padding: 14px 16px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-radius: 1rem 1rem 0 0;
}

.appointment-table-card .dataTables_filter label {
  max-width: 300px;
}

.appointment-table-card .dt-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.appointment-table-card .dt-export-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 999px;
}

.appointment-table-card .dt-filter-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
  width: min(1100px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--poi-gold);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  padding: 0;
  display: flex !important;
  flex-direction: column;
}

.appointment-table-card .dt-filter-panel.d-none {
  display: none !important;
}

.appointment-table-card .dt-filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.appointment-table-card .dt-filter-panel-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.appointment-table-card .dt-filter-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.appointment-table-card .dt-filter-close-btn:hover {
  color: #1e293b;
}

.appointment-table-card .dt-filter-content {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
}

.appointment-table-card .dt-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.appointment-table-card .dt-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.appointment-table-card .dt-filter-field label {
  display: block;
  font-size: 13px;
  /* font-weight: 600; */
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

.appointment-table-card .dt-filter-field select,
.appointment-table-card .dt-filter-field input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 10px 14px;
  font-size: 12px;
  color: #334155;
  background: #fff;
  transition: all 0.2s ease;
}

.appointment-table-card .dt-filter-field .input-premium-new {
  padding-left: 2.25rem !important;
}

.appointment-table-card .dt-filter-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1em;
  padding-right: 2.25rem;
}

.appointment-table-card .dt-filter-field select:hover,
.appointment-table-card .dt-filter-field input:hover {
  border-color: var(--poi-gold);
}

.appointment-table-card .dt-filter-field select:focus,
.appointment-table-card .dt-filter-field input:focus {
  outline: none;
  border-color: var(--poi-gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
  background: #ffffff;
}

.appointment-table-card .dt-filter-date-range {
  display: flex;
  gap: 12px;
}

.appointment-table-card .dt-filter-date-range input {
  flex: 1;
}

.appointment-table-card .dt-filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 0;
  padding: 20px 28px;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.appointment-table-card .dt-filter-actions .btn {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.appointment-table-card .dt-filter-actions .btn-reset {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #0369a1;
}

.appointment-table-card .dt-filter-actions .btn-reset:hover {
  background: #0369a1;
  color: #fff;
}

.appointment-table-card .dt-filter-actions .btn-apply {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  );
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.appointment-table-card .dt-filter-actions .btn-apply:hover {
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.4);
  transform: translateY(-1px);
}

.dt-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1099;
  backdrop-filter: blur(4px);
  display: none;
}

.dt-filter-overlay.active {
  display: block;
}

/* PAGINATION STYLES */
.dataTables_wrapper .dataTables_paginate {
  padding: 1rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  margin: 0 2px !important;
  transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f8fafc !important;
  color: var(--poi-gold) !important;
  border-color: var(--poi-gold) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--poi-gold) !important;
  color: white !important;
  border-color: var(--poi-gold) !important;
}

.dataTables_wrapper .dataTables_info {
  padding: 1rem !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dataTables_wrapper .dataTables_length {
  padding: 1rem !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  outline: none;
  margin: 0 4px;
}

/* ──────────────────────────────────────────────────────────────────────────
   18. FLATPICKR CALENDAR OVERRIDES
   ────────────────────────────────────────────────────────────────────────── */
.flatpickr-calendar {
  border-radius: 1.25rem !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(197, 160, 89, 0.2) !important;
  background: #fff !important;
  padding: 5px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: linear-gradient(
    135deg,
    var(--poi-gold) 0%,
    var(--poi-gold-dark) 100%
  ) !important;
  border-color: transparent !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3) !important;
}

.flatpickr-day.inRange {
  background: rgba(197, 160, 89, 0.1) !important;
  box-shadow: none !important;
}

.flatpickr-months .flatpickr-month {
  color: var(--slate-800) !important;
  fill: var(--slate-800) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 800 !important;
}

.flatpickr-weekday {
  color: var(--slate-400) !important;
  font-weight: 700 !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   19. APPOINTMENTS LEDGER PAGE & GENERAL PREMIUM COMPONENT STYLES
   ────────────────────────────────────────────────────────────────────────── */
.fw-900 {
  font-weight: 300;
}

.premium-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(197, 160, 89, 0.3);
}

.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.premium-card:hover .stat-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.nav-pills-premium {
  background: #f1f5f9;
  padding: 0.2rem;
  border-radius: 0.75rem;
  display: inline-flex;
  gap: 0.2rem;
}

.pill-item {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--slate-500, #64748b);
  text-decoration: none;
  font-size: 11px;
  font-weight: 300;
  transition: all 0.3s ease;
}

.pill-item.active {
  background: #ffffff;
  color: var(--poi-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pill-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: var(--slate-700);
}

/* NEW PREMIUM ACTIONS */
.btn-gold-gradient {
  background: linear-gradient(
    135deg,
    var(--slate-800) 0%,
    var(--slate-700) 100%
  );
  border: none;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 12px !important;
  padding: 0.5rem 1.25rem !important;
}

.btn-gold-gradient:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    var(--slate-900) 0%,
    var(--slate-800) 100%
  );
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.dropdown-trigger-premium {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: white;
  color: var(--slate-500);
  transition: all 0.2s ease;
}

.dropdown-trigger-premium:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-800);
}

.dropdown-menu-premium {
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  padding: 0.5rem !important;
  min-width: 200px !important;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1060 !important;
}

.dropdown-toggle-nocaret::after {
  display: none !important;
}

.dropdown-item-premium {
  border-radius: 8px !important;
  padding: 0.6rem 1rem !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--slate-600) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.dropdown-item-premium i {
  font-size: 1.1rem;
}

.dropdown-item-premium:hover {
  background: var(--slate-50) !important;
  color: var(--poi-gold) !important;
}

.dropdown-item-premium.text-danger:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.modal-glass {
  background: #ffffff !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  box-shadow:
    0 40px 80px -15px rgba(0, 0, 0, 0.1),
    0 20px 40px -20px rgba(0, 0, 0, 0.1) !important;
}

/* Common Modal and History/View Panel Styles */
.modal-body-scrollable {
  max-height: 60vh;
  overflow-y: auto;
}

.history-card-primary {
  background: #ffffff;
  border-left: 4px solid var(--poi-navy, #1e3a8a) !important;
  border-radius: 20px;
}

.history-card-secondary {
  background: #f8fafc;
  border-left: 4px solid var(--slate-500, #64748b) !important;
  border-radius: 20px;
}

.avatar-circle-sm {
  width: 32px;
  height: 32px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 50%;
}

.modal-history-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.history-item-block {
  font-size: 13px;
}

/* ──────────────────────────────────────────────────────────────────────────
   20. APPOINTMENT FORM CONTROLS & INTERACTIVE STYLES
   ────────────────────────────────────────────────────────────────────────── */
.btn-back-gold {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--poi-gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-back-gold:hover {
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.appointment-upload-zone {
  border: 2px dashed var(--slate-200);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.appointment-upload-zone:hover {
  border-color: var(--poi-gold);
  background: rgba(197, 160, 89, 0.06);
}

.appointment-upload-placeholder {
  text-align: center;
  color: var(--slate-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.appointment-upload-placeholder i {
  font-size: 1.75rem;
  color: var(--poi-gold);
}

.appointment-upload-placeholder span {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
}

.appointment-upload-placeholder small {
  font-size: 11px;
  color: var(--slate-400);
}

.appointment-upload-preview {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0.75rem;
}

@keyframes registerPulse {
  0% {
    transform: scale(1);
    color: var(--poi-gold);
  }
  30% {
    transform: scale(1.18);
    color: #b45309;
    letter-spacing: 0.04em;
  }
  60% {
    transform: scale(1.08);
    color: var(--poi-gold);
  }
  100% {
    transform: scale(1);
    color: var(--poi-gold);
  }
}

.register-pulse {
  display: inline-block;
  animation: registerPulse 0.65s ease forwards;
}

.user-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  z-index: 1050;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--slate-100);
}

.user-search-item {
  padding: 1rem;
  border-bottom: 1px solid var(--slate-50);
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-search-item:hover {
  background: var(--slate-50);
}

.btn-gold-sm {
  background: rgba(197, 160, 89, 0.08);
  color: var(--poi-gold);
  border: none;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 13px;
  /* font-weight: 600; */
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-gold-sm:hover {
  background: var(--poi-gold);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.2);
}

.btn-gold-sm:active {
  transform: translateY(0);
}

.table-premium-sm thead th {
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--slate-400);
  border: none;
  padding-bottom: 1rem;
}

/* ─── APPOINTMENTS RESPONSIVE ─── */
@media (max-width: 991.98px) {
  /* Header filter row: stack pills and buttons */
  .premium-card.mb-3 .d-flex.flex-column.flex-lg-row {
    gap: 0.75rem;
  }

  /* Pills: scroll horizontally */
  .nav-pills-premium {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-pills-premium::-webkit-scrollbar {
    display: none;
  }

  .pill-item {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .vr.mx-2 {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .appointment-table-card .dataTables_wrapper > .dt-toolbar,
  .appointment-table-card .dataTables_wrapper > .d-flex:first-of-type {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .appointment-table-card .dataTables_filter label {
    max-width: none;
  }

  .appointment-table-card .dt-toolbar-actions {
    justify-content: center !important;
    width: 100%;
    flex-wrap: wrap;
  }

  .appointment-table-card .dataTables_wrapper .dt-buttons,
  .appointment-table-card .dt-export-group {
    justify-content: center !important;
  }

  .appointment-table-card .dt-filter-panel {
    width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 40px);
  }

  .appointment-table-card .dt-filter-grid {
    grid-template-columns: 1fr;
  }

  .appointment-table-card .dt-filter-content {
    padding: 20px;
  }

  .appointment-table-card .dt-filter-panel-header {
    padding: 16px 20px;
  }

  .appointment-table-card .dt-filter-actions {
    padding: 16px 20px;
  }

  /* Stats row → 2-column grid */
  .row.g-3.mb-4 .col-md-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* Stat card content alignment */
  .premium-card.p-3.d-flex {
    gap: 0.75rem !important;
  }

  /* Action buttons full width */
  .d-flex.gap-2 .btn-gold-gradient {
    flex: 1;
    justify-content: center;
  }

  /* Table wrapper horizontal scroll with visual cue */
  .appointment-table-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 1rem 1rem;
  }

  /* Pagination centers */
  .dataTables_wrapper .dataTables_paginate {
    text-align: center !important;
    padding: 0.75rem !important;
  }

  .dataTables_wrapper .paginate_button {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }

  /* DataTable info + search stack */
  .dataTables_wrapper .dt-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .dataTables_wrapper .dataTables_filter {
    max-width: 100%;
  }

  .dataTables_wrapper .dataTables_filter label {
    width: 100%;
    max-width: none;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Export buttons center */
  .dt-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Container padding */
  .container-fluid.py-3 {
    padding: 0.75rem !important;
  }
}

@media (max-width: 1024px) {
  .appointment-table-card .dt-filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 575.98px) {
  /* Stats → 1 column */
  .row.g-3.mb-4 .col-md-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Tighter stat cards */
  .premium-card.p-3 {
    padding: 0.65rem !important;
  }

  .stat-icon-box {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  /* Header card tighter */
  .premium-card.mb-3 {
    padding: 0.75rem !important;
  }

  /* Pills font */
  .pill-item {
    font-size: 11px;
  }

  /* Table font tighter */
  .table-premium tbody td {
    font-size: 11px !important;
    padding: 0.35rem 0.3rem !important;
  }

  .table-premium thead th {
    font-size: 10px !important;
    padding: 0.4rem 0.3rem !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   21. SHARED TABLE BADGE & ROLE VARIANTS
   (used by Appointments, Member Management, and any future table pages)
   ────────────────────────────────────────────────────────────────────────── */

/* Extend the shared .status-badge (base defined in section 17) */
.status-badge.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-inactive {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Role chip badges — shared across member management and any role-display context */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

.role-badge.role-admin {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.2);
}

.role-badge.role-politician {
  background: rgba(197, 160, 89, 0.12);
  color: var(--poi-gold-dark);
  border-color: rgba(197, 160, 89, 0.25);
}

.role-badge.role-politician_staff {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.2);
}

.role-badge.role-photographer {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.2);
}

.role-badge.role-media_personnel {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border-color: rgba(168, 85, 247, 0.2);
}

.role-badge.role-user {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.2);
}

/* Permission micro-badge — shared across member management and any permissions context */
.perm-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  margin: 1px;
}

/* Functional permissions toggle panel — shared for any module-permissions field */
.permissions-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--slate-50);
}

.perm-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  transition: all 0.2s ease;
}

.perm-toggle:hover {
  border-color: var(--poi-gold);
  background: rgba(197, 160, 89, 0.04);
}

.perm-toggle .form-check-input:checked {
  background-color: var(--poi-gold);
  border-color: var(--poi-gold);
}

.perm-toggle .form-check-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  margin-bottom: 0;
  text-transform: capitalize;
}

/* Override custom select trigger/menu items inside Datatables Filter fields */
.appointment-table-card .dt-filter-field .custom-select-trigger {
  font-size: 12px !important;
  min-height: 40px !important;
  padding: 10px 14px !important;
  border-radius: 0.75rem !important;
  border: 1.5px solid #e2e8f0 !important;
}

.appointment-table-card .dt-filter-field .custom-select-item {
  font-size: 12px !important;
  padding: 8px 14px !important;
}
