


@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Poppins:wght@400;500;600&display=swap');



:root {
  --nav-glass-bg-light: rgba(255, 255, 255, 0.96);
  --nav-glass-bg-dark: rgba(28, 28, 28, 0.97);
  --nav-border-light: rgba(0, 0, 0, 0.08);
  --nav-border-dark: rgba(255, 255, 255, 0.08);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;

  --nav-height: 64px;
  --mobile-nav-height: 80px;
  /* effective 1% of viewport height for iOS dynamic toolbar handling */
  --vh: 1vh;
}



* {
  -webkit-tap-highlight-color: transparent;
}

/* Global icon–text gap for Bootstrap Icons.
   Bootstrap's me-N classes use !important and will override this where spacing
   is already explicitly set. This only fills the gap for icons without any me- class. */
i[class*="bi-"] { margin-inline-end: 0.25rem; }

/* Centering fix: the global rule above resolves to margin-left in RTL, which
   shifts icons off-center inside any flex container used as an icon-circle or
   icon-only button. Zero it out for all such containers throughout the app.
   me-N classes (which use !important) are unaffected and still win where set. */
.notif-icon > i[class*="bi-"],
.notif-card-icon > i[class*="bi-"],
.notif-action-btn > i[class*="bi-"],
.stat-card-icon > i[class*="bi-"],
.icon-wrapper > i[class*="bi-"],
.qnav-icon-wrap > i[class*="bi-"],
.btn:has(> i[class*="bi-"]:only-child) > i[class*="bi-"] {
  margin-inline-end: 0;
}

/* Make the document height follow the dynamic viewport height set by JS --vh */
html {
  height: 100%;
}

/* Bootstrap's ScrollBarHelper adds inline padding-right to body and all
   position:fixed elements (including the navbar) when a modal opens to
   compensate for the scrollbar disappearing. Override it here globally. */
body.modal-open {
  padding-right: 0 !important;
  padding-left: 0 !important;
}
body.modal-open #mainNavbar {
  padding-right: 0 !important;
  padding-left: 0 !important;
}
/* Same fix for offcanvas (Bootstrap adds inline padding-right but adds no body class) */
body:has(.offcanvas.show) {
  padding-right: 0 !important;
  padding-left: 0 !important;
}
body:has(.offcanvas.show) #mainNavbar {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Push top-positioned toast notifications below the fixed navbar */
.ribbon-toast-wrapper.top-0 {
  top: var(--nav-height, 64px) !important;
}
body {
  /* use min-height so content can grow and native scrollbars remain intact */
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100vh; /* fallback for browsers without --vh */
}

/* Customized scrollbars (WebKit + Firefox) */
:root {
  --scrollbar-bg: rgba(0,0,0,0.06);
  --scrollbar-thumb: rgba(0,0,0,0.18);
}
body.dark {
  --scrollbar-bg: rgba(255,255,255,0.06);
  --scrollbar-thumb: rgba(255,255,255,0.14);
}

/* Firefox */
body, .modal-body, .page-main, .table-responsive {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

/* WebKit */
body::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
  border-radius: 8px;
}
body::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Small compatibility helpers for touch devices */
button, a, input, textarea, select {
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* standard property for compatibility */
}

/* Utility class applied via JS while a modal is open to hide bottom mobile chrome on iOS */
body.hide-mobile-chrome .mobile-nav-bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

/* Ensure the fixed mobile nav respects safe area insets */
.mobile-nav-bar {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

@supports (overscroll-behavior: contain) {
}

img, picture, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  font-family: "Cairo", "Poppins", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transform: none;
  backface-visibility: visible;
  line-height: 1.6;
  font-size: clamp(15px, 1.6vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Text muted utility */
.text-muted {
  color: var(--text-muted, #6c757d) !important;
}

body.light .text-muted {
  color: #64748b !important;
}

body.dark .text-muted {
  color: rgba(241, 241, 241, 0.7) !important;
}

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
h4 { font-size: clamp(1.15rem, 2.3vw, 1.45rem); }
h5 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
h6 { font-size: 1rem; }

.page-main {
  padding-top: 0;
  /* padding-bottom: var(--space-4); */
  /* make the main area respect the dynamic viewport height on mobile */
  min-height: calc(var(--vh, 1vh) * 100 - var(--nav-height) - env(safe-area-inset-bottom));
} 

@media (min-width: 992px) {
  /* Desktop: add top spacing below fixed navbar for breadcrumbs */
  .page-main > nav[aria-label="breadcrumb"]:first-child {
    padding-top: calc(var(--nav-height) + var(--space-3));
    margin-bottom: 1.5rem;
  }
  
  /* For pages without breadcrumbs and without hero, add padding to first element */
  /* Exclude page-header sections — they already carry margin-top: 64px */
  .page-main > div:first-child:not(.hero-landing):not(.container-fluid):not([class*="page-header"]),
  .page-main > section:first-child:not(.hero-landing):not([class*="page-header"]) {
    padding-top: calc(var(--nav-height) + var(--space-3)) !important;
  }
}

@media (max-width: 991px) {
  .page-main {
    padding-top: 0;
    padding-bottom: 0;
    min-height: calc(var(--vh, 1vh) * 100 - var(--mobile-nav-height) - env(safe-area-inset-bottom));
  }
  
  /* Mobile: add small margin below breadcrumbs */
  .page-main > nav[aria-label="breadcrumb"] {
    margin-bottom: 1rem;
  }
  
  footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
} 

/* Primary brand color lives in :root so the per-tenant override in header.php
   (also :root, later source order) can win via cascade. */
:root {
  --primary:         #fb923c;
  --primary-dark:    #ea580c;
  --primary-light:   rgba(var(--primary-rgb),0.12);
  --primary-rgb:     251,146,60;
  --secondary:       #0e7490;
  --secondary-dark:  #0c6478;
  --secondary-light: rgba(var(--secondary-rgb),0.12);
  --secondary-rgb:   14,116,144;
  --on-orange:       #0f172a;  /* text/icon color on any orange/brand background */
}

body.light {
  --bg-gradient: #f0f2f5;
  --card-bg: rgba(255,255,255,0.95);
  --nav-bg: rgba(255,255,255,0.98);
  --nav-blur: blur(8px);
  --border: rgba(0,0,0,0.1);
  --text: #2c3e50;
  --text-muted: #64748b;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.dark {
  --bg-gradient: #1c1c1c;
  --card-bg: rgba(40,40,40,0.85);
  --nav-bg: rgba(30,30,30,0.98);
  --nav-blur: blur(8px);
  --border: rgba(255,255,255,0.08);
  --text: #f1f1f1;
  --text-muted: #94a3b8;
  --shadow: 0 4px 10px rgba(0,0,0,0.3);
}


.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card h5, .card h3, .card p {
  color: var(--text);
}

body.dark .card i {
  color: inherit;
}


.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-danger {
  background: var(--primary) !important;
  border: none;
  color: #fff !important;
  box-shadow: var(--shadow);
}
.card.bg-success { background: linear-gradient(135deg, #28a745, #6fdc7c) !important; }
.card.bg-warning { background: linear-gradient(135deg, #ffc107, #ffe484) !important; color:#2b2b2b !important; }
.card.bg-danger  { background: linear-gradient(135deg, #dc3545, #f9808a) !important; }
.card.bg-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)) !important; }



.btn,
button,
input[type="submit"] {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 0.7rem;
}

.form-control,
.form-select,
textarea {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  font-size: clamp(16px, 1rem, 18px);
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

/* Input group styling */
.input-group-text {
  background-color: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1e293b;
  font-weight: 500;
}

body.dark .input-group-text {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f1f1;
  font-weight: 600;
}

/* Readonly and disabled inputs */
.form-control:read-only,
.form-control:disabled {
  background-color: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.8;
}

body.dark .form-control:read-only,
body.dark .form-control:disabled {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

body.dark .form-text { color: #94a3b8; }

/* ===== Booking form: compact & alignment fixes ===== */
.booking-card-main,
.booking-card-section {
  padding: 0.9rem !important;
}
.booking-card-section .d-flex {
  gap: 0.6rem;
  align-items: center;
}
.booking-card-section .rounded-circle {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem;
  line-height: 1;
}
.booking-card-section h5 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.05;
}
.booking-card-section small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.84rem;
  color: rgba(0,0,0,0.55);
}

/* Dark theme overrides for booking form muted text (improves contrast) */
body.dark .booking-card-section small,
body.dark .booking-card-section .text-muted,
body.dark .booking-card-section .small,
body.dark .booking-card-main small,
body.dark .booking-card-main .text-muted,
body.dark .booking-info-box .small {
  /* slightly higher contrast for readability on dark backgrounds */
  color: rgba(255,255,255,0.78) !important;
}

/* ===== Fix select chevron position & theme-aware color (RTL-safe) ===== */
.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-inline-start: 2.5rem;
  padding-inline-end: 1rem;
  background-size: 0.75rem 0.75rem;
  transition: background-position 0.15s ease;
}

/* Hide native dropdown arrow in IE */
.form-select::-ms-expand { 
  display: none; 
}

/* Unified v-shaped chevron for both themes */
body.light .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

body.dark .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

/* LTR adjustments - right aligned for English */
[dir="ltr"] .form-select,
body.light [dir="ltr"] .form-select,
body.dark [dir="ltr"] .form-select {
  background-position: right 1rem center !important;
  padding-inline-end: 2.5rem !important;
  padding-inline-start: 1rem !important;
}

/* RTL adjustments - left aligned for Arabic */
[dir="rtl"] .form-select,
body.light [dir="rtl"] .form-select,
body.dark [dir="rtl"] .form-select {
  background-position: left 1rem center !important;
  padding-inline-start: 2.5rem !important;
  padding-inline-end: 1rem !important;
}

@media (max-width: 576px) {
  .booking-card-section h5 { font-size: 0.96rem; }
  .booking-card-section small { font-size: 0.82rem; }
  .booking-card-main, .booking-card-section { padding: 0.8rem !important; }
  
  .form-select { 
    background-size: 0.65rem 0.65rem;
  }
  
  [dir="ltr"] .form-select,
  body.light [dir="ltr"] .form-select,
  body.dark [dir="ltr"] .form-select { 
    padding-inline-end: 2.25rem !important; 
    background-position: right 0.85rem center !important; 
  }
  
  [dir="rtl"] .form-select,
  body.light [dir="rtl"] .form-select,
  body.dark [dir="rtl"] .form-select { 
    padding-inline-start: 2.25rem !important; 
    background-position: left 0.85rem center !important; 
  }
}

.btn-primary {
  --bs-btn-color: var(--on-orange);
  --bs-btn-hover-color: var(--on-orange);
  --bs-btn-active-color: var(--on-orange);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-orange) !important;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--on-orange) !important;
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--on-orange);
}

/* Ensure correct text on hover for outline/danger buttons in light theme */
body.light .btn-outline-primary:hover,
body.light .btn-primary:hover {
  color: var(--on-orange) !important;
}

body.light .btn-outline-danger:hover,
body.light .btn-danger:hover {
  color: #fff !important;
}


.modal-content {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.modal-header { border-bottom-color: var(--border); }
.modal-footer { border-top-color: var(--border); }


footer {
  background: linear-gradient(135deg, var(--primary-light), #ffffff);
  color: #2b2b2b;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}
footer p { margin: 0; }


a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--primary-dark); }




@media (max-width: 768px) {
  .navbar-brand { font-size: 1.2rem; }
  .card h5 { font-size: 1rem; }
  .card h3 { font-size: 1.4rem; }
  .table { font-size: 0.9rem; }
}




body.dark,
body.dark p,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark label,
body.dark .nav-link,
body.dark .card-title,
body.dark .card-text {
  color: #f1f1f1 !important;
}


body.dark .form-control,
body.dark .form-select,
body.dark textarea {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}
body.dark .form-control:focus,
body.dark .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(251,146,60,0.25);
}
body.dark .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}


body.dark input[type="date"]::-webkit-calendar-picker-indicator,
body.dark input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.5);
}


body.dark .dropdown-menu {
  border-color: rgba(255,255,255,0.1);
}
body.dark .dropdown-item { color: #f1f1f1; }
body.dark .dropdown-item:hover {
  background-color: var(--primary-dark);
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}


[dir="rtl"] .dropdown-menu-end {
  right: auto;
  left: 0;
}


body.dark .modal-content {
  background-color: #222;
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}
body.dark .modal-header,
body.dark .modal-footer {
  border-color: rgba(255,255,255,0.1);
}


body.dark .nav-link .bi-moon,
body.light .nav-link .bi-sun { display: none; }
body.dark .nav-link .bi-sun,
body.light .nav-link .bi-moon { display: inline-block; }


.dropdown-menu {
  inset: auto !important;
  inset-inline-end: 0 !important;
  transform: translateY(3px);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1050;
}


.dropdown-menu.show {
  overflow: visible;
}


.dropdown-item {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}




body.light .btn-outline-secondary,
body.light .btn-secondary {
  color: #fff !important;
  background: #6c757d !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
body.light .btn-outline-secondary:hover,
body.light .btn-secondary:hover {
  background: var(--primary) !important;
  color: var(--on-orange) !important;
  box-shadow: 0 0 10px rgba(251,146,60,0.5);
}


body.dark .btn-outline-secondary,
body.dark .btn-secondary {
  color: #fff !important;
  background: #444 !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}
body.dark .btn-outline-secondary:hover,
body.dark .btn-secondary:hover {
  background: var(--primary-dark) !important;
  color: var(--on-orange) !important;
  box-shadow: 0 0 10px rgba(251,146,60,0.4);
}

/* Desktop Profile Button Styling */
body.light .desktop-profile-btn {
  color: var(--on-orange) !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
  border-radius: 0.6rem;
  font-weight: 500;
}
body.light .desktop-profile-btn:hover {
  background: var(--primary-dark) !important;
  color: var(--on-orange) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

body.dark .desktop-profile-btn {
  color: var(--on-orange) !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
  border-radius: 0.6rem;
  font-weight: 500;
}
body.dark .desktop-profile-btn:hover {
  background: var(--primary-dark) !important;
  color: var(--on-orange) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.5);
  transform: translateY(-2px);
}

/* Center Desktop Profile Dropdown */
.desktop-profile-btn + .dropdown-menu {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

/* Logout Item Styling */
.dropdown-item.logout-item {
  color: #dc3545;
  font-weight: 500;
}
.dropdown-item.logout-item:hover {
  background-color: #dc3545 !important;
  color: #fff !important;
}
body.dark .dropdown-item.logout-item:hover {
  background-color: #c82333 !important;
  color: #fff !important;
}



section .card {
  pointer-events: auto;
}

/* Ensure interactive elements inside cards are clickable */
section .card a,
section .card button,
section .card input,
section .card textarea,
section .card select,
section .card label {
  pointer-events: auto;
  cursor: pointer;
}

section .card .text-muted {
  font-size: 1.05rem;
  font-weight: 600;
}
section .card .text-danger.fw-bold {
  font-size: 0.9rem;
  opacity: 0.8;
}






body.light .page-link {
  color: var(--primary);
  border: 1px solid var(--primary-light);
  background: #fff;
  transition: all 0.25s ease;
}
body.light .page-item.active .page-link,
body.light .page-link:hover {
  background: var(--primary);
  color: var(--on-orange);
  border-color: var(--primary-dark);
  box-shadow: 0 0 6px rgba(251,146,60,0.4);
}





body.dark footer {
  background: linear-gradient(135deg,#141414,#1f1f1f);
  color: #eaeaea;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}


body.dark section .card .fw-semibold,
body.dark section .card .small.text-muted {
  color: #fff !important;
}
body.dark section .card .text-danger.fw-bold {
  color: #ff7070 !important;
}

.summary-card {
  background-color: #2b2b2b;
  color: #fff;
  transition: background .3s ease, color .3s ease;
}
body.light .summary-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-orange);
}
body.dark .summary-card {
  background: #1e1e1e;
  color: #f1f1f1;
}

/* Ensure dashboard summary card icons follow the theme:
   - dark icons on light theme
   - white icons on dark theme */
body.light .summary-card i {
  color: var(--text) !important; /* prefers the current page text color (dark on light) */
}
body.dark .summary-card i {
  color: #fff !important;
}


.hover-card { transition: transform .2s, box-shadow .2s; }
.hover-card:hover { transform: translateY(-1px); box-shadow: 0 0 10px rgba(0,0,0,0.2); }
body.dark .quick-nav-card {
  background: #222 !important;
  color: #f1f1f1 !important;
}
body.dark .quick-nav-card:hover {
  background: #2b2b2b !important;
}


.adaptive-table {
  transition: background 0.3s ease, color 0.3s ease;
}


body.light .adaptive-table {
  background: #fff;
  color: #212529;
  border-color: rgba(0,0,0,0.1);
}
body.light .adaptive-table thead {
  background: #f8f9fa;
  color: #212529;
}
body.light .adaptive-table tbody tr:hover {
  background: rgba(251,146,60,0.08);
}


body.dark .adaptive-table {
  background: #1e1e1e;
  color: #f1f1f1;
  border-color: rgba(255,255,255,0.1);
}
body.dark .adaptive-table thead {
  background: #2b2b2b;
  color: #f1f1f1;
}
body.dark .adaptive-table tbody tr:hover {
  background: rgba(251,146,60,0.10);
}
body.dark .adaptive-table td,
body.dark .adaptive-table th {
  border-color: rgba(255,255,255,0.08);
}
body.dark .adaptive-table .text-muted {
  color: rgba(255,255,255,0.6) !important;
}




body.light .table,
body.light .table-striped,
body.light .table-hover {
  --bs-table-bg: #ffffff !important;
  --bs-table-striped-bg: #f8f9fa !important;
  --bs-table-striped-color: #212529 !important;
  --bs-table-hover-bg: rgba(251,146,60,0.08) !important;
  --bs-table-hover-color: #212529 !important;
  --bs-table-color: #212529 !important;
  --bs-table-border-color: rgba(0,0,0,0.1) !important;
}


body.dark .table,
body.dark .table-striped,
body.dark .table-hover {
  --bs-table-bg: #1e1e1e !important;
  --bs-table-striped-bg: #2a2a2a !important;
  --bs-table-striped-color: #f1f1f1 !important;
  --bs-table-hover-bg: #333 !important;
  --bs-table-hover-color: #fff !important;
  --bs-table-color: #f1f1f1 !important;
  --bs-table-border-color: rgba(255,255,255,0.1) !important;
}


body.dark .table tbody tr.inactive,
body.dark .table tbody tr.expired,
body.dark .table tbody tr.table-secondary {
  background-color: #f5f5f5 !important;
  color: #212529 !important;
}
body.dark .table tbody tr.inactive td,
body.dark .table tbody tr.expired td {
  color: #212529 !important;
}
body.dark .table tbody tr.inactive:hover,
body.dark .table tbody tr.expired:hover {
  background-color: #e9e9e9 !important;
  color: #212529 !important;
}


body.dark .table tbody tr.inactive .text-muted,
body.dark .table tbody tr.expired .text-muted {
  color: #6c757d !important;
}


body.dark .table td,
body.dark .table th {
  color: #f1f1f1 !important;
  border-color: rgba(255,255,255,0.08) !important;
}


body.dark .table .text-muted {
  color: rgba(255,255,255,0.6) !important;
}




body.dark .table,
body.dark .table-striped,
body.dark .table-hover {
  --bs-table-bg: #1e1e1e !important;
  --bs-table-striped-bg: #2a2a2a !important;
  --bs-table-striped-color: #f1f1f1 !important;
  --bs-table-hover-bg: #333 !important;
  --bs-table-hover-color: #fff !important;
  --bs-table-color: #f1f1f1 !important;
  --bs-table-border-color: rgba(255,255,255,0.1) !important;
}


body.dark .table td,
body.dark .table th {
  color: #f1f1f1 !important;
  border-color: rgba(255,255,255,0.08) !important;
}


body.dark .table .text-muted {
  color: rgba(255,255,255,0.6) !important;
}




body.light .pagination .page-link {
  color: var(--primary);
  background-color: #fff;
  border: 1px solid var(--primary-light);
  transition: all 0.25s ease;
}
body.light .pagination .page-link:hover {
  background-color: var(--primary);
  color: var(--on-orange);
  border-color: var(--primary-dark);
  box-shadow: 0 0 6px rgba(251,146,60,0.4);
}
body.light .pagination .page-item.active .page-link {
  background-color: var(--primary);
  color: var(--on-orange);
  border-color: var(--primary-dark);
  box-shadow: 0 0 8px rgba(251,146,60,0.5);
}


body.dark .pagination .page-link {
  color: #f1f1f1;
  background-color: #2b2b2b;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.25s ease;
}
body.dark .pagination .page-link:hover {
  background-color: var(--primary);
  color: var(--on-orange);
  border-color: var(--primary-dark);
  box-shadow: 0 0 6px rgba(251,146,60,0.4);
}
body.dark .pagination .page-item.active .page-link {
  background-color: var(--primary);
  color: var(--on-orange);
  border-color: var(--primary-dark);
  box-shadow: 0 0 8px rgba(251,146,60,0.5);
}


.pagination .page-link {
  border-radius: 0.5rem !important;
  font-weight: 600;
  min-width: 38px;
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  backdrop-filter: blur(6px);
}
.card {
  backdrop-filter: blur(4px);
}

body.dark .card,
body.light .card {
  background: var(--card-bg);
  backdrop-filter: none;
}

body.dark table thead {
  background-color: #2b2b2b !important;
  color: #f1f1f1 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
body.dark table thead th {
  background-color: #2b2b2b !important;
  color: #f1f1f1 !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark table tbody td {
  color: #f1f1f1 !important;
}


body.dark .calendar-grid {
  background-color: #1e1e1e !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark .calendar-day {
  border-color: rgba(255,255,255,0.08) !important;
}
body.dark .calendar-day .bg-light {
  background-color: #2b2b2b !important;
  color: #f1f1f1 !important;
}
body.dark .calendar-day small.text-muted {
  color: rgba(255,255,255,0.6) !important;
}
body.dark .calendar-day .p-2 {
  background-color: #1a1a1a !important;
  color: #f1f1f1 !important;
}


body.dark .calendar-day .card {
  background-color: #222 !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #f1f1f1 !important;
}
body.dark .calendar-day .card .text-muted {
  color: rgba(255,255,255,0.6) !important;
}
body.dark .calendar-day .card .fw-semibold {
  color: #fff !important;
}


/* ==========================
   Modern Notification Dropdown (Social Media Style)
========================== */

.notif-dropdown .dropdown-toggle {
  border: none;
  padding: 0.6rem;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.notif-dropdown .dropdown-toggle:active {
  transform: translateY(0) scale(0.95);
}

.notif-dropdown .dropdown-toggle::after {
  display: none;
}

.notif-dropdown .dropdown-toggle .bi-bell {
  font-size: 1.1rem;
}

.notif-badge {
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  animation: notifPulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: none;
}

@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notif-dropdown-menu {
  width: 420px;
  max-width: 95vw;
  max-height: 600px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0;
  margin-top: 8px !important;
  overflow: hidden;
  background: var(--card-bg);
  animation: notifDropdownSlide 0.2s ease-out;
  direction: rtl;
  text-align: right;
}

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

.notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.notif-header h6 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

.notif-header-actions {
  display: flex;
  gap: 8px;
}

.notif-icon-btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-icon-btn:hover {
  background: var(--hover-bg);
  transform: scale(1.05);
}

.notif-icon-btn:active {
  transform: scale(0.95);
}

.notif-list {
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.notif-list::-webkit-scrollbar {
  width: 6px;
}

.notif-list::-webkit-scrollbar-track {
  background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 150, 150, 0.5);
}

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  background: var(--card-bg);
}

.notif-item:hover {
  background: var(--hover-bg);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item.unread {
  background: rgba(13, 110, 253, 0.08);
}

body.dark .notif-item.unread {
  background: rgba(13, 110, 253, 0.15);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #0d6efd;
  border-radius: 50%;
  animation: notifDot 1.5s ease-in-out infinite;
}

.notif-item.read {
  background: rgba(15, 197, 97, 0.08);
}

body.dark .notif-item.read {
  background: rgba(15, 197, 97, 0.15);
}

.notif-item.read::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #11cb8d;
  border-radius: 50%;
  animation: notifDot 1.5s ease-in-out infinite;
}

@keyframes notifDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.notif-icon.type-booking {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notif-icon.type-booking_confirmed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notif-icon.type-booking_cancelled {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notif-icon.type-booking_reminder {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notif-icon.type-whatsapp_incoming {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.notif-icon.type-order {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notif-icon.type-system {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.notif-icon.type-client {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.notif-icon.type-payment {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Gradient classes shared with .notif-card-icon (notifications pages) */
.notif-card-icon { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); }
.notif-card-icon.type-booking            { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.notif-card-icon.type-booking_confirmed  { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.notif-card-icon.type-booking_cancelled  { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.notif-card-icon.type-booking_reminder   { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.notif-card-icon.type-order              { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.notif-card-icon.type-order_status       { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.notif-card-icon.type-system             { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.notif-card-icon.type-client             { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.notif-card-icon.type-payment            { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.notif-card-icon.type-whatsapp_incoming  { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-type {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.notif-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.notif-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notif-item:hover .notif-actions {
  opacity: 1;
}

.notif-action-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.notif-action-btn:hover {
  background: var(--border);
  transform: scale(1.1);
}

.notif-action-btn.delete {
  color: var(--text);
}

.notif-action-btn.delete:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

body.dark .notif-action-btn.delete {
  color: rgba(255, 255, 255, 0.8);
}

body.light .notif-action-btn.delete {
  color: rgba(0, 0, 0, 0.7);
}

body.dark .notif-action-btn.read {
  color: rgba(255, 255, 255, 0.7);
}

.notif-action-btn.read:hover {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.notif-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.notif-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.notif-empty-text {
  font-size: 1rem;
  font-weight: 500;
}

body.dark .notif-empty-text {
  color: rgba(241, 241, 241, 0.8);
}

body.dark .notif-empty-icon {
  color: rgba(241, 241, 241, 0.4);
}

.notif-loading {
  padding: 12px 20px;
}

.notif-skeleton {
  height: 70px;
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    var(--hover-bg) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: notifSkeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
  margin-bottom: 12px;
}

@keyframes notifSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.notif-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-view-all {
  flex: 1;
  display: block;
  text-align: center;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.notif-view-all:hover {
  background: var(--hover-bg);
  color: #0a58ca;
}

.notif-clear-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.notif-clear-btn:hover { background: #ef4444; color: #fff; }
body.dark .notif-clear-btn { background: rgba(239,68,68,0.15); color: #fca5a5; }
body.dark .notif-clear-btn:hover { background: #ef4444; color: #fff; }

/* Bell shake animation */
@keyframes bellShake {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
  20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.bell-shake {
  animation: bellShake 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .notif-dropdown-menu {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0 0 12px 12px;
    position: fixed !important;
    top: var(--navbar-height, 60px) !important;
    right: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin: 0 !important;
  }
  
  .notif-list {
    max-height: calc(100vh - var(--navbar-height, 60px) - 140px);
  }
}

/* Dark mode specific adjustments */
body.dark .notif-dropdown-menu {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark .notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .notif-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark .notif-message {
  color: rgba(255, 255, 255, 0.7);
}

body.dark .notif-type {
  color: rgba(255, 255, 255, 0.9);
}

body.dark .notif-time {
  color: rgba(255, 255, 255, 0.5);
}

body.dark .notif-view-all {
  color: #6ea8fe;
}

body.dark .notif-view-all:hover {
  color: #9ec5fe;
}

body.dark .mobile-notif-view-all {
  color: #6ea8fe;
}

body.dark .mobile-notif-view-all:hover {
  color: #9ec5fe;
}


.notif-modal {
  background: var(--card-bg);
  color: var(--text);
  border: none;
  box-shadow: var(--shadow);
  border-radius: 1rem;
  overflow: hidden;
}

.notif-modal-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  display: flex;
}

.ltr-header {
  flex-direction: row-reverse;
}
.rtl-header {
  flex-direction: row;
}

.notif-modal-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
}

body.dark .notif-modal .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.9;
}
body.dark .notif-modal .btn-close:hover {
  opacity: 1;
}


#notifModal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}

#notifModal .modal-dialog.notif-dialog {
  margin: 0 auto !important;
  width: 100%;
  max-width: 720px;
  transform: none !important;
}

.navbar-toggler {
  border: none;
  outline: none !important;
  box-shadow: none !important;
  position: relative;
  width: 32px;
  height: 24px;
  transition: transform 0.3s ease;
}
.navbar-toggler-icon {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--text);
  display: block;
  transition: background 0.3s ease;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text);
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}
.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { top: 8px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}



.navbar .nav-link.active {
  position: relative;
  color: var(--primary) !important;
  font-weight: 700;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  opacity: 0.9;
}




.navbar-toggler {
  width: 48px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}


.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  background: var(--text);
  width: 22px;
  left: 0;
  right: 0;
  margin: auto;
}


#mainNavbar {
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 1040;
  min-height: var(--nav-height);
}


#mainNavbar .navbar-brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.5rem;
}
#mainNavbar .navbar-brand::after {
  display: none !important;
}
#mainNavbar .nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}
#mainNavbar .nav-link:hover { color: var(--primary); }
#mainNavbar .nav-link.active { color: var(--primary); font-weight: 700; }


#mainNavbar .icon-only {
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Notification bell specific styling */
#mainNavbar .notif-dropdown .dropdown-toggle {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
  color: white !important;
  border-color: #0891b2 !important;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3) !important;
}

#mainNavbar .notif-dropdown .dropdown-toggle:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0d9488 100%) !important;
  border-color: #0e7490 !important;
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.5) !important;
  transform: translateY(-2px);
}

#mainNavbar .notif-dropdown .dropdown-toggle i {
  color: white !important;
}

#mainNavbar .icon-only i {
  font-size: 1.2rem;
  line-height: 1;
}

#mainNavbar .icon-only:hover {
  color: var(--on-orange);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(251,146,60,0.4);
}

#mainNavbar .icon-only:hover i {
  transform: rotate(20deg);
  transition: transform 0.25s ease;
}



#mainNavbar .profile-toggle > .nav-link.icon-only {
  background: var(--primary);
  color: var(--on-orange) !important;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(251,146,60,0.45);
}

#mainNavbar .profile-toggle > .nav-link.icon-only:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--on-orange) !important;
  box-shadow: 0 0 12px rgba(251,146,60,0.55);
}


body.dark #mainNavbar .icon-only {
  color: #f1f1f1;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
body.dark #mainNavbar .icon-only:hover {
  background: var(--primary-dark);
  color: var(--on-orange);
  border-color: var(--primary-dark);
  box-shadow: 0 0 10px rgba(251,146,60,0.45);
}
body.dark #mainNavbar .profile-toggle > .nav-link.icon-only {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-orange);
  box-shadow: 0 0 12px rgba(251,146,60,0.45);
}
body.dark #mainNavbar .profile-toggle > .nav-link.icon-only:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 0 14px rgba(251,146,60,0.55);
}

#mainNavbar .nav-link.active i {
  animation: pulseIcon 1.5s ease-in-out infinite;
}
@keyframes pulseIcon {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}
#mainNavbar .icon-only:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
body.light #mainNavbar .icon-only {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.10);
  color: var(--text);
  backdrop-filter: none;
}
#mainNavbar .icon-only {
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
}





#mainNavbar .profile-toggle > .nav-link.icon-only {
  position: relative;
  overflow: visible;
}
#mainNavbar .profile-toggle > .nav-link.icon-only:hover i {
  transform: rotate(20deg);
  transition: transform 0.25s ease;
}
#mainNavbar .profile-toggle > .nav-link.icon-only:hover::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(251,146,60,0.4);
  animation: ringPulseLoop 1.2s ease-out infinite;
}
@keyframes ringPulseLoop {
  0% { transform: scale(0.8); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

#mainNavbar .profile-toggle > .nav-link.icon-only:hover i {
  transform: rotate(20deg) !important;
}



#themeToggle i {
  transition: transform 0.6s ease, color 0.3s ease, opacity 0.3s ease;
}
body.light #themeToggle:hover i.bi-moon {
  transform: rotate(360deg);
  color: var(--primary-dark);
}
body.dark #themeToggle:hover i.bi-sun {
  transform: rotate(-360deg);
  color: var(--primary);
}
body.light #themeToggle i.bi-sun { display: none; }
body.dark #themeToggle i.bi-moon { display: none; }


#langToggle {
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}


body.light #langToggle,
body.light #langToggle i {
  color: #000 !important;
}
body.light #langToggle:hover {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(251,146,60,0.4);
  color: var(--on-orange) !important;
}
body.light #langToggle:hover i {
  color: var(--on-orange) !important;
}


body.dark #langToggle {
  color: #f1f1f1;
}
body.dark #langToggle:hover {
  background: rgba(251,146,60,0.12);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(251,146,60,0.4);
}
body.dark #langToggle:hover i {
  color: var(--primary);
}


#mainNavbar .icon-only:not(.profile-toggle):hover {
  background: rgba(251,146,60,0.1);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(251,146,60,0.3);
}
body.dark #mainNavbar .icon-only:not(.profile-toggle):hover {
  background: rgba(251,146,60,0.12);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(251,146,60,0.35);
}



@media (max-width: 991.98px) {
  /* Light theme mobile navbar - fully opaque entire navbar and collapse */
  body.light #mainNavbar {
    background: #ffffff !important;
    backdrop-filter: none !important;
  }

  body.light #mainNavbar .navbar-collapse {
    background: #ffffff !important;
    backdrop-filter: none !important;
  }

  /* Dark theme mobile navbar */
  body.dark #mainNavbar {
    background: var(--nav-bg);
    backdrop-filter: var(--nav-blur);
  }

  #mainNavbar .navbar-collapse {
    border-top: 1px solid var(--border);
    border-radius: 0 0 1rem 1rem;
    text-align: center;
    padding: 1rem;
  }

  /* Dark theme mobile active nav-link */
  body.dark #mainNavbar .navbar-collapse .nav-link.active {
    color: #fcd34d !important;
    font-weight: 700;
  }

  #mainNavbar .navbar-nav.mx-auto {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  #mainNavbar .icon-row {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 0.8rem;
    justify-content: center !important;
  }
  
  .navbar-toggler {
    border: none;
    width: 40px;
    height: 30px;
    position: relative;
  }
  .navbar-toggler-icon,
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    background: var(--text);
    width: 22px;
    height: 2px;
    position: absolute;
    left: 9px;
    transition: all 0.3s;
  }
  .navbar-toggler-icon::before { top: -6px; }
  .navbar-toggler-icon::after { top: 6px; }
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
  }
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }
}


[dir="rtl"] #mainNavbar .icon-row {
  flex-direction: row-reverse;
}
[dir="rtl"] #mainNavbar .navbar-brand img {
  margin-right: 0;
  margin-left: .5rem;
}

#langToggle {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
#langToggle:hover {
  color: var(--primary);
}
@media (min-width: 992px) {
  .navbar-toggler { 
    display: none !important;
  }
}


.modal-content {
  border: none !important;
  border-radius: 1rem !important;
  background-color: #fff !important;
  color: #222 !important;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

body.dark .modal-content {
  background-color: #1a1a1a !important;
  color: #eee !important;
}


.modal-header,
.modal-footer {
  border: none !important;
}

.modal-header {
  border-top-left-radius: 1rem !important;
  border-top-right-radius: 1rem !important;
}

.modal-footer {
  border-bottom-left-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
}

/* Default colors only for headers/footers without explicit bg-* class or inline background */
.modal-header:not([class*="bg-"]):not([style*="background"]),
.modal-footer:not([class*="bg-"]) {
  background-color: #f5f5f5 !important;
  color: #222 !important;
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
  }
}

@media (min-width: 992px) {
  .modal {
    padding-top: 5rem;
  }
  .modal-dialog {
    max-width: 65%;
    max-height: calc(100vh - 6rem) !important;
    margin: auto !important;
  }
  .modal-content {
    max-height: calc(100vh - 6rem) !important;
  }
}

/* Allow inner modal body to scroll fully on small iOS viewports; respect dynamic VH */
.modal-dialog {
  max-height: calc(var(--vh, 1vh) * 100 - 48px);
}
.modal-body {
  max-height: calc(var(--vh, 1vh) * 100 - 180px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}  

/* When iOS safe-area handling is enabled, legacy modal rules removed — see the fixed-position rules near the top of the file */
/* no-op here to avoid duplicate declarations */

body.dark .modal-header:not([class*="bg-"]):not([style*="background"]),
body.dark .modal-footer:not([class*="bg-"]) {
  background-color: #2a2a2a !important;
  color: #eee !important;
}


.btn-close:not(.btn-close-white) {
  filter: none !important;
  opacity: 0.8 !important;
}
body.dark .btn-close:not(.btn-close-white) {
  filter: invert(1) brightness(1.2) !important;
}
html[dir="rtl"] .modal-header .btn-close,
html[dir="rtl"] .offcanvas-header .btn-close {
  margin-left: 0 !important;
  margin-right: auto !important;
}


.modal.fade .modal-dialog { transform: translateY(-10px); }
.modal.show .modal-dialog { transform: translateY(0); }


.modal-footer .btn {
  min-width: 100px;
  border-radius: 0.5rem;
}


.btn-outline-primary,
.btn-primary,
.btn-link {
  border-color: #888 ;
  text-decoration: none ;
}
body.dark .btn-outline-primary,
body.dark .btn-primary,
body.dark .btn-link {
  border-color: #888 ;
}
.btn-outline-primary:hover,
.btn-primary:hover,
.btn-link:hover {
  border-color: #888;
  background-color: var(--primary-dark);
}
body.dark .btn-outline-primary:hover,
body.dark .btn-primary:hover,
body.dark .btn-link:hover {
  border-color: #888;
  background-color: var(--primary-dark);
}


.modal-footer .btn-outline-secondary {
  color: inherit;
  border-color: rgba(0, 0, 0, 0.2) ;
}
body.dark .modal-footer .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.3) ;
}
.modal-footer .btn-outline-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05) ;
}
body.dark .modal-footer .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) ;
}


.hero-landing {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  min-height: 88dvh;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  transition: background .4s ease, color .4s ease;
}
.hero-landing .hero-overlay {
  position: absolute;
  background: rgba(0,0,0,0.35);
  transition: background .4s ease;
}


body.light .hero-landing {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
body.light .hero-landing .hero-overlay {
  background: rgba(0,0,0,0.15);
}
body.light .hero-landing h1,
body.light .hero-landing p {
  color: #fff !important;
}
body.light .hero-landing a.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transition: all .3s ease;
}
body.light .hero-landing a.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
body.light .hero-landing a.btn-primary:focus,
body.light .hero-landing a.btn-primary:active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.2), 0 0 0 0.25rem rgba(var(--primary-rgb), 0.5);
}


body.dark .hero-landing {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
body.dark .hero-landing .hero-overlay {
  background: rgba(0,0,0,0.35);
}

.hero-landing .btn-outline-light {
  border-color: #ffffff;
  color: #fff;
  background-color: rgba(255,255,255,0.15);
  border-width: 2px;
  transition: all .3s ease;
}
.hero-landing .btn-outline-light:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.25);
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}
.hero-landing .btn-outline-light:focus,
.hero-landing .btn-outline-light:active {
  color: #fff;
  background-color: rgba(255,255,255,0.3);
  border-color: #ffffff;
  box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.5);
}

/* ─── Hero Primary CTA (login / dashboard) ─── */
.hero-cta-primary {
  background: #ffffff !important;
  color: var(--primary) !important;
  border: none !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 28px rgba(0,0,0,0.28), 0 0 0 4px rgba(255,255,255,0.28);
  transition: all .3s ease;
}
.hero-cta-primary:hover,
.hero-cta-primary:focus {
  background: rgba(var(--primary-rgb), 0.15) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,255,255,0.45);
}

/* ─── Hero Contact Icons ─── */
.hero-landing .contact-icons {
  gap: 1rem !important;
}
.hero-landing .contact-icons a.btn {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.14) !important;
  border: 1.5px solid rgba(255,255,255,0.45) !important;
  backdrop-filter: blur(8px);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  transition: all .3s ease;
}
.hero-landing .contact-icons a.btn:hover {
  background: rgba(255,255,255,0.28) !important;
  border-color: rgba(255,255,255,0.75) !important;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero-landing .contact-icons a.btn-success {
  background: rgba(37,211,102,0.22) !important;
  border-color: rgba(37,211,102,0.55) !important;
}
.hero-landing .contact-icons a.btn-success:hover {
  background: rgba(37,211,102,0.38) !important;
}


/* Mobile Responsiveness for Hero Section */
@media (max-width: 768px) {
  .hero-landing {
    min-height: 84vh;
    min-height: 84svh;
    min-height: 84dvh;
  }
}

@media (max-width: 576px) {
  .hero-landing {
    min-height: 92vh;
    min-height: 92svh;
    min-height: 92dvh;
  }
}


.work-hours-section .hour-card {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px;
  transition: all 0.4s ease;
}
.work-hours-section .hour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 255, 255, 0.18) !important;
}

body.light .work-hours-section .hour-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
  color: var(--text) !important;
}

body.light .work-hours-section .hour-card:hover {
  background: rgba(255, 255, 255, 0.98) !important;
  color: var(--text) !important;
}

body.light .work-hours-section .fw-semibold {
  color: var(--primary) !important;
}

body.light .work-hours-section .small {
  color: var(--text-muted) !important;
}

body.light .work-hours-section .text-danger {
  color: #dc2626 !important;
}


.services-preview .icon-wrapper {
  font-size: 2rem;
  color: var(--primary-dark);
}
.services-preview .service-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.services-preview .service-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

body.light .icon-wrapper {
  
  display: none;
}

body.dark .icon-wrapper {
  display: none;
}


.about-section,
.about-highlight {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.about-section a.btn,
.about-highlight a.btn {
  border-color: #fff;
  color: #fff;
}
.about-section a.btn:hover,
.about-highlight a.btn:hover {
  background: #fff;
  color: var(--primary-dark);
}


.masonry-grid {
  column-count: 4;
  column-gap: 1rem;
}
.masonry-grid a {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.masonry-grid img {
  width: 100%;
  border-radius: 1rem;
  display: block;
  transition: transform .3s ease;
}
.masonry-grid a:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
@media (max-width:992px){.masonry-grid{column-count:3}}
@media (max-width:768px){.masonry-grid{column-count:2}}
@media (max-width:576px){.masonry-grid{column-count:1}}




body.dark #mainNavbar .dropdown-menu {
  background-color: #1f1f1f !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.6rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.08s ease-out;
}

body.dark #mainNavbar .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.dark #mainNavbar .dropdown-item {
  color: #f1f1f1 !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.dark #mainNavbar .dropdown-item:hover {
  background-color: var(--primary);
  color: #000 !important;
}


@media (max-width: 991.98px) {
  body.dark #mainNavbar .navbar-collapse .dropdown-menu {
    background-color: #1f1f1f !important;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.6rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.08s ease-out;
  }

  body.dark #mainNavbar .navbar-collapse .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.dark #mainNavbar .navbar-collapse .dropdown-item {
    color: #f1f1f1 !important;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  body.dark #mainNavbar .navbar-collapse .dropdown-item:hover {
    background-color: var(--primary);
    color: #000 !important;
  }
}



@media (max-width: 991.98px) {
  body.dark #mainNavbar .navbar-collapse .dropdown-menu {
    background-color: #1f1f1f !important;
    border: 1px solid rgba(255,255,255,0.1);
  }

  body.dark #mainNavbar .navbar-collapse .dropdown-item {
    color: #f1f1f1 !important;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  body.dark #mainNavbar .navbar-collapse .dropdown-item:hover {
    background-color: var(--primary);
    color: #000 !important;
  }
}

.services-section,
.services-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.services-section > .container {
  position: relative;
  z-index: 1;
}

/* Service Card Modern Design */
.service-card {
  position: relative;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

.service-card-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.service-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  transition: all 0.35s ease;
}

.service-card:hover .icon-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
  transform: scale(1.1) rotateZ(10deg);
}

.service-card .icon-wrapper i {
  font-size: 2.5rem;
  color: #fff;
  transition: transform 0.35s ease;
}

.service-card:hover .icon-wrapper i {
  transform: scale(1.15);
}

.service-card-body {
  padding: 0 1.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.service-duration {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-duration {
  color: #fff;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  padding: 1rem;
  border-radius: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.services-section h2 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* service-card used as a link */
a.service-card-link {
  color: inherit;
  cursor: pointer;
}
a.service-card-link .service-title,
a.service-card-link .service-duration,
a.service-card-link .service-price { color: inherit; }

.services-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.services-section a.btn,
.services-highlight a.btn {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.services-section a.btn:hover,
.services-highlight a.btn:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.services-section a.btn-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
}

.services-section a.btn-primary:hover {
  background: #fff;
}

/* Light Theme - Services Section */
body:not(.dark) .services-section,
body:not(.dark) .services-highlight {
  background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
  color: #1a202c;
  position: relative;
}

body:not(.dark) .services-section::before {
  background: radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.08), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(var(--secondary-rgb), 0.06), transparent 50%);
}

body:not(.dark) .service-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.08);
}

body:not(.dark) .service-card::before {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0), rgba(var(--primary-rgb), 0.6), rgba(var(--primary-rgb), 0));
}

body:not(.dark) .service-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15) !important;
}

body:not(.dark) .service-card .icon-wrapper {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.08));
}

body:not(.dark) .service-card:hover .icon-wrapper {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.12));
}

body:not(.dark) .service-card .icon-wrapper i {
  color: var(--primary);
}

body:not(.dark) .service-title {
  color: #1a202c;
}

body:not(.dark) .service-duration {
  color: #666;
}

body:not(.dark) .service-card:hover .service-duration {
  color: var(--primary);
}

body:not(.dark) .service-price {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--secondary-rgb), 0.06));
  text-shadow: none;
}

body:not(.dark) .services-section h2 {
  color: #1a202c;
  text-shadow: none;
}

body:not(.dark) .services-section .lead {
  color: #666;
}

body:not(.dark) .services-section a.btn,
body:not(.dark) .services-highlight a.btn {
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  backdrop-filter: blur(6px);
}

body:not(.dark) .services-section a.btn:hover,
body:not(.dark) .services-highlight a.btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

body:not(.dark) .services-section a.btn-primary {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.08));
}

body:not(.dark) .services-section a.btn-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* Dark Theme - Services Section */
body.dark .services-section,
body.dark .services-highlight {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.32) 0%, rgba(var(--secondary-rgb), 0.22) 100%);
  color: #f1f1f1;
  position: relative;
}

body.dark .services-section::before {
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
}

body.dark .service-card {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark .service-card::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

body.dark .service-card:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

body.dark .service-card .icon-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

body.dark .service-card:hover .icon-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
}

body.dark .service-card .icon-wrapper i {
  color: #fff;
}

body.dark .service-title {
  color: #fff;
}

body.dark .service-duration {
  color: rgba(255, 255, 255, 0.85);
}

body.dark .service-card:hover .service-duration {
  color: #fff;
}

body.dark .service-price {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

body.dark .services-section h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.dark .services-section .lead {
  color: rgba(255, 255, 255, 0.9);
}

body.dark .services-section a.btn,
body.dark .services-highlight a.btn {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

body.dark .services-section a.btn:hover,
body.dark .services-highlight a.btn:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark .services-section a.btn-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
}

body.dark .services-section a.btn-primary:hover {
  background: #fff;
  color: var(--primary);
}

/* Responsive Service Cards */
@media (max-width: 768px) {
  .services-section h2 {
    font-size: 2rem;
  }

  .service-card {
    border-radius: 12px;
  }

  .service-card-header {
    padding: 1.5rem 1rem 1rem;
  }

  .service-card-body {
    padding: 0 1rem 1.5rem;
  }

  .service-card .icon-wrapper {
    width: 70px;
    height: 70px;
  }

  .service-card .icon-wrapper i {
    font-size: 2rem;
  }

  .service-title {
    font-size: 1.1rem;
  }

  .service-price {
    font-size: 1.25rem;
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .services-section h2 {
    font-size: 1.75rem;
  }

  .service-card {
    border-radius: 10px;
  }

  .service-card-header {
    padding: 1.25rem 0.75rem 0.75rem;
  }

  .service-card-body {
    padding: 0 0.75rem 1.25rem;
  }

  .service-card .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .service-card .icon-wrapper i {
    font-size: 1.75rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-duration {
    font-size: 0.85rem;
  }

  .service-price {
    font-size: 1.1rem;
  }

  .services-section a.btn-lg {
    padding: 0.6rem 2rem !important;
    font-size: 1rem;
  }
}


.gallery-showcase {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  transition: background 0.4s ease, color 0.4s ease;
}

.gallery-showcase a.btn {
  border-color: #fff;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

.gallery-showcase a.btn:hover {
  background: #fff;
  color: var(--primary-dark);
}


body.dark .gallery-showcase {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.32) 0%, rgba(var(--secondary-rgb), 0.22) 100%);
  color: #f1f1f1;
}

body.dark .gallery-showcase a.btn {
  border-color: #f1f1f1;
  color: #f1f1f1;
}

body.dark .gallery-showcase a.btn:hover {
  background: var(--primary);
  color: #000;
}



.work-hours-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  transition: background 0.4s ease, color 0.4s ease;
}

.work-hours-section a.btn {
  border-color: #fff;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

.work-hours-section a.btn:hover {
  background: #fff;
  color: var(--primary-dark);
}


body.dark .work-hours-section {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.32) 0%, rgba(var(--secondary-rgb), 0.22) 100%);
  color: #f1f1f1;
}

body.dark .work-hours-section a.btn {
  border-color: #f1f1f1;
  color: #f1f1f1;
}

body.dark .work-hours-section a.btn:hover {
  background: var(--primary);
  color: #000;
}


#mainNavbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(8px) !important;
}


@media (max-width: 991.98px) {
  #mainNavbar .profile-toggle {
    position: relative;
  }

  #mainNavbar .profile-toggle .dropdown-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(5px) !important;
    min-width: 180px;
    text-align: center;
    border-radius: 0.75rem;
  }

  #mainNavbar .profile-toggle .dropdown-menu.show {
    display: block;
  }

  
  #mainNavbar .profile-toggle > .nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto;
    position: relative;
  }

  #mainNavbar .profile-toggle.open,
  #mainNavbar .profile-toggle.show {
    transform: none !important;
  }
}

#mainNavbar .profile-toggle > .nav-link.icon-only:hover i {
  transform: rotate(20deg);
}


.navbar,
.card,
footer {
  transform: none !important;
  will-change: auto !important;
}

.hero-logo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
  z-index: 0;
}
.hero-logo-bg img {
  width: 90%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.4);
  pointer-events: none;
  user-select: none;
}
.hero-landing .container {
  position: relative;
  z-index: 1;
}


.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  left: 0 !important;
  right: 0 !important;
  margin: auto !important;
}


.contact-icons {
  margin-top: 2rem;
  gap: 1.2rem;
}

.contact-icons a {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 0;
}

.contact-icons a i,
.contact-icons a img {
  display: inline-block;
  font-size: 2.2rem;
  color: #fff;
  width: 34px;
  height: 34px;
  vertical-align: middle;
}

.contact-icons a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-icons a img {
  object-fit: contain;
  filter: none;
}


.contact-icons a[href*="wa.me"] i {
  color: #25D366 !important;
}


.reviews-section {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
  color: #222;
  transition: background 0.4s ease, color 0.4s ease;
}
body.dark .reviews-section {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.28) 0%, rgba(var(--secondary-rgb), 0.18) 100%);
  color: #f8f8f8;
}


.reviews-section .card {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.1);
  transition: all 0.4s ease;
}
body.dark .reviews-section .card {
  background: rgba(30, 30, 30, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.reviews-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 255, 255, 0.18) !important;
}

body.light .reviews-section .card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
  color: var(--text) !important;
}

body.light .reviews-section .card:hover {
  background: rgba(255, 255, 255, 0.98) !important;
  color: var(--text) !important;
}

body.light .reviews-section .card h5,
body.light .reviews-section .card p {
  color: var(--text) !important;
}

body.light .star-rating {
  color: var(--primary) !important;
}


.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.75;
  transform: scale(1);
  transition: color 0.25s ease, transform 0.2s ease, opacity 0.25s ease;
}

body.dark .star-rating label {
  color: var(--text-muted);
  opacity: 0.65;
}


.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #ffc107;
  transform: scale(1.5);
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.55);
}


.star-rating label i {
  transition: inherit;
}


.reviews-section .bi-star-fill {
  color: #ffc107 !important;
  text-shadow: 0 0 4px rgba(255,204,51,0.4);
}
.reviews-section .bi-star {
  color: #999 !important;
  opacity: 0.8;
}
body.dark .reviews-section .bi-star {
  color: #555 !important;
  opacity: 0.85;
}


.reviews-section .text-muted {
  opacity: 0.85;
}
.reviews-section .text-rose {
  color: #b76e79;
}
body.dark .reviews-section .text-rose {
  color: #ffb6c1;
}

section {
  position: relative;
  width: 100%;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* Light theme alternating section backgrounds — index.php homepage only */
body.light .hero-landing ~ section:nth-of-type(even) {
  background: rgba(var(--primary-rgb), 0.04);
}

/* Section heading colors for light theme */
body.light section h2,
body.light section h3,
body.light section h4 {
  color: #1a202c !important;
  text-shadow: none;
}

@media (max-width: 768px) {
  .hero-landing .mt-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-landing .mt-4 .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  
  .hero-landing .contact-icons a {
    width: 52px;
    height: 52px;
  }
  .hero-landing .contact-icons a img {
    width: 26px;
    height: 26px;
  }  
}

.booking-info-box {
  background-color: rgba(0, 0, 0, 0.03);
  color: inherit;
}

body.dark .booking-info-box {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f8f9fa;
}
body.dark .booking-info-box p {
  color: #f1f1f1 !important;
}

.success-actions a.btn,
a.btn-success {
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
}

.btn-outline-secondary {
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--bs-border-color);
  color: #fff;
}

body.light h2.text-success {
  color: #198754 !important; 
}

body.dark h2.text-success {
  color: #28d17c !important; 
}
.dashboard-card {
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  background-color: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  border-radius: 1rem;
}

.dashboard-card:hover {
  transform: translateY(-4px);
}

/* Light theme hover effect */
body:not(.dark) .dashboard-card:hover {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--secondary-rgb), 0.08));
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
  border-color: rgba(var(--primary-rgb), 0.3);
}

/* Dark theme hover effect */
body.dark .dashboard-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.dashboard-card .icon {
  color: var(--primary);
  transition: color 0.25s ease, transform 0.25s ease;
}

body.dark .dashboard-card .icon {
  color: var(--primary);
}

.dashboard-card:hover .icon {
  transform: scale(1.1);
  color: var(--primary-dark);
}

/* Category colour modifiers — use tenant CSS vars instead of hardcoded Tailwind palette */
.dashboard-card--blue  .icon { color: var(--primary); }
.dashboard-card--teal  .icon { color: var(--secondary); }
.dashboard-card--blue:hover  .icon { color: var(--primary-dark); }
.dashboard-card--teal:hover  .icon { color: var(--secondary); }
body.dark .dashboard-card--blue  .icon { color: var(--primary); }
body.dark .dashboard-card--teal  .icon { color: var(--secondary); }

.logout-card,
body.light section .card.logout-card {
  background: #dc3545 !important;
  color: #fff !important;
}

.logout-card i,
.logout-card h5 {
  color: #fff !important;
}

.logout-card:hover {
  background: #c82333 !important;
  color: #fff !important;
  border-color: rgba(200, 35, 51, 0.35) !important;
  box-shadow: 0 6px 20px rgba(220,53,69,0.5) !important;
}

.logout-card:hover i,
.logout-card:hover h5 {
  color: #fff !important;
}

/* Dashboard group label */
.dash-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dash-group-label::before,
.dash-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #e2e8f0);
}
body.dark .dash-group-label { color: #64748b; }
body.dark .dash-group-label::before,
body.dark .dash-group-label::after { background: rgba(255,255,255,0.08); }

.fade-in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.auto-scroll-gallery {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: min(100%, 1200px);
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 20px;
}

body.light .auto-scroll-gallery {
  background: rgba(var(--primary-rgb), 0.03);
  backdrop-filter: blur(8px);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 auto;
  width: clamp(220px, 70vw, 300px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.4s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 255, 255, 0.18);
}

body.light .gallery-item {
  background: rgba(var(--primary-rgb), 0.08) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
}

body.light .gallery-item:hover {
  background: rgba(var(--primary-rgb), 0.15) !important;
}

/* Light theme text and content styling */
body.light section p,
body.light section .card-text,
body.light section .text-muted {
  color: #4a5568 !important;
}

body.light section .card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(var(--primary-rgb), 0.2) !important;
  color: #2c3e50 !important;
}

body.light section .card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Logout card — must be placed AFTER the generic body.light section .card rules
   so that document order + higher specificity both work in our favour */
body.light section .card.logout-card {
  background: #dc3545 !important;
  color: #fff !important;
  border-color: transparent !important;
}
body.light section .card.logout-card:hover {
  background: #c82333 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5) !important;
  border-color: transparent !important;
}
body.light section .card.logout-card i,
body.light section .card.logout-card h5 {
  color: #fff !important;
}

@keyframes galleryScrollLTR {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes galleryScrollRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}


#mainNavbar .nav-link:hover,
body.dark #mainNavbar .nav-link:hover {
  color: var(--primary) !important;
}
#mainNavbar .nav-link.active {
  color: var(--primary);
  font-weight: 700;
}
body.dark #mainNavbar .nav-link.active {
  color: #fcd34d !important;
  font-weight: 700;
}


#mainNavbar .profile-toggle > .nav-link.icon-only i {
  transition: transform 0.25s ease;
}
#mainNavbar .profile-toggle > .nav-link.icon-only:hover i {
  transform: rotate(20deg);
}
#mainNavbar .navbar-brand img {
  display: none;
}

#mainNavbar .navbar-brand span {
  font-size: 1.1rem;
}
#mainNavbar .nav-link,
#mainNavbar .btn {
  font-weight: 500;
}
#mainNavbar .nav-link:hover {
  color: var(--primary);
}




body.light .form-select option {
  background-color: #fff;
  color: #212529;
}
body.dark .form-select option {
  background-color: #2a2a2a;
  color: #f1f1f1;
}


.flatpickr-calendar {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  opacity: 1 !important;
}
body.light .flatpickr-calendar {
  background: #fff !important;
  color: #212529 !important;
}
body.dark .flatpickr-calendar {
  background: #1e1e1e !important;
  color: #f1f1f1 !important;
}
body.light .flatpickr-months,
body.light .flatpickr-weekdays {
  background: #f8f9fa !important;
  color: #212529 !important;
}
body.dark .flatpickr-months,
body.dark .flatpickr-weekdays {
  background: #2a2a2a !important;
  color: #ffffff !important; 
}
.flatpickr-day {
  color: inherit !important;
  border-radius: 0.5rem;
}
.flatpickr-day:hover {
  background: var(--primary-light) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--primary) !important;
  color: #fff !important;
}

.body.dark .flatpickr-current-month {
  color: #f1f1f1 !important;
}

body.dark .flatpickr-months .flatpickr-month {
  color: #fff !important;
}

body.dark .flatpickr-months .flatpickr-prev-month svg,
body.dark .flatpickr-months .flatpickr-next-month svg {
  fill: #fff !important;
}

body.dark .flatpickr-weekdays span {
  color: #fff !important;
}




body.light .mobile-nav-bar {
  background: var(--nav-glass-bg-light);
  border-top: 1px solid var(--nav-border-light);
}
body.dark .mobile-nav-bar {
  background: var(--nav-glass-bg-dark);
  border-top: 1px solid var(--nav-border-dark);
}


.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 1030;
  transition: all 0.3s ease;
}

body.dark .mobile-nav-bar {
  background: rgba(28, 28, 28, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.4);
}

.mobile-nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-item i {
  font-size: 1.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-item span {
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .mobile-nav-item:hover {
    opacity: 1;
  }
  .mobile-nav-item:hover i {
    transform: translateY(-2px);
  }
}

.mobile-nav-item:active {
  opacity: 0.7;
  transition: opacity 0.08s ease;
}

.mobile-nav-item.active {
  opacity: 1;
}

.mobile-nav-item.active i {
  color: var(--primary-dark) !important;
  transform: scale(1.1);
}

.mobile-nav-item.active span {
  color: var(--primary-dark) !important;
  font-weight: 600;
}

body.light .mobile-nav-item {
  color: rgba(20, 10, 50, 0.88) !important;
  opacity: 0.9;
}

body.light .mobile-nav-item.active i,
body.light .mobile-nav-item.active span {
  color: #5b68c4 !important;
}

body.dark .mobile-nav-item.active i,
body.dark .mobile-nav-item.active span {
  color: #c084fc !important;
}


/* Reset native button appearance so the class styles fully apply */
/* Profile button center slot — always occupies equal flex space so the
   button stays centered regardless of how many items flank it */
.mobile-nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

button.mobile-profile-btn {
  -webkit-appearance: none;
  appearance: none;
}

.mobile-profile-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.35);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-orange) !important;
  text-decoration: none !important;
  box-shadow:
    0 4px 8px 1px rgba(var(--primary-rgb), 0.22),
    0 4px 6px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 1035 !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 10px;
  flex-shrink: 0;
  animation: profilePulse 3s ease-in-out infinite;
}

.mobile-profile-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.mobile-profile-btn:hover::before {
  opacity: 1;
}

.mobile-profile-btn i {
  font-size: 1.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  margin-inline-end: 0; /* cancel global bi- icon spacing that shifts icon in RTL */
}

.mobile-profile-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--primary-dark);
  color: var(--on-orange) !important;
  box-shadow:
    0 5px 12px 2px rgba(var(--primary-rgb), 0.45),
    0 5px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mobile-profile-btn:active {
  transform: scale(0.92);
  box-shadow:
    0 3px 6px 1px rgba(var(--primary-rgb), 0.2),
    0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: none; /* Pause pulse animation on tap */
}

body.dark .mobile-profile-btn {
  background: var(--primary);
  color: var(--on-orange) !important;
  box-shadow:
    0 4px 8px 1px rgba(var(--primary-rgb), 0.45),
    0 4px 6px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark .mobile-profile-btn:hover {
  background: var(--primary-dark);
  filter: none;
  box-shadow:
    0 5px 12px 2px rgba(var(--primary-rgb), 0.55),
    0 5px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark .mobile-profile-btn:active {
  filter: none;
  box-shadow:
    0 3px 6px 1px rgba(var(--primary-rgb), 0.35),
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .mobile-profile-btn::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

/* Mobile Profile Dropdown Menu */
.mobile-profile-dropdown {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 240px;
  overflow: hidden;
  z-index: 1001;
  animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes profilePulse {
  0%, 100% {
    box-shadow:
      0 4px 8px 1px rgba(var(--primary-rgb), 0.22),
      0 4px 6px rgba(0, 0, 0, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  50% {
    box-shadow:
      0 5px 12px 2px rgba(var(--primary-rgb), 0.35),
      0 5px 8px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
}

/* Dark theme animation for profile button */
body.dark .mobile-profile-btn {
  animation: profilePulseDark 3s ease-in-out infinite;
}

@keyframes profilePulseDark {
  0%, 100% {
    box-shadow:
      0 4px 8px 1px rgba(var(--primary-rgb), 0.45),
      0 4px 6px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow:
      0 5px 12px 2px rgba(var(--primary-rgb), 0.6),
      0 5px 8px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

/* Locked premium nav items */
.mobile-nav-locked {
  opacity: 0.45;
  pointer-events: none;
}
.mobile-nav-lock-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-lock-icon {
  position: absolute;
  top: -5px;
  right: -7px;
  font-size: 0.5rem !important;
  color: var(--text-muted);
  margin: 0 !important;
}

body.dark .mobile-profile-dropdown {
  background: #2c2c2c;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  text-decoration: none;
  color: #2c3e50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.mobile-dropdown-item:last-child {
  border-bottom: none;
}

.mobile-dropdown-item:hover {
  background: rgba(var(--primary-rgb), 0.12);
  transform: scale(1.02);
}

.mobile-dropdown-item:active {
  background: rgba(var(--primary-rgb), 0.2);
}

.mobile-dropdown-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
  color: var(--primary);
}

.mobile-dropdown-item.logout-item {
  color: #dc3545;
}

.mobile-dropdown-item.logout-item i {
  color: #dc3545;
}

body.dark .mobile-dropdown-item {
  color: #f1f1f1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark .mobile-dropdown-item i {
  color: #c084fc;
}

body.dark .mobile-dropdown-item:hover {
  background: rgba(192, 132, 252, 0.15);
}

body.dark .mobile-dropdown-item:active {
  background: rgba(192, 132, 252, 0.25);
}

.mobile-dropdown-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.08);
}

body.dark .mobile-dropdown-divider {
  background: rgba(255, 255, 255, 0.12);
}

/* Dark theme support for closure alerts */
body.dark .alert-danger {
  background-color: rgba(220, 53, 69, 0.2) !important;
  border-color: rgba(220, 53, 69, 0.3) !important;
  color: #ff6b7a !important;
}

body.dark .alert-danger .alert-heading,
body.dark .alert-danger strong {
  color: #ff8a93 !important;
}

body.dark .alert-warning {
  background-color: rgba(255, 193, 7, 0.15) !important;
  border-color: rgba(255, 193, 7, 0.25) !important;
  color: #ffc107 !important;
}

body.dark .alert-warning .alert-heading,
body.dark .alert-warning strong {
  color: #ffd54f !important;
}

body.dark .alert .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}

body.dark .alert .btn-close:hover {
  opacity: 1;
}


.mobile-theme-btn,
.mobile-lang-btn {
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.dark .mobile-theme-btn,
body.dark .mobile-lang-btn {
  background: rgba(20, 20, 20, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.35);
}


.mobile-theme-btn:active,
.mobile-lang-btn:active {
  transform: scale(0.92);
  opacity: 0.75;
}

/* Fallback: make sure modals/backdrops are above mobile chrome on problematic browsers */
.modal {
  z-index: 1060 !important;
}
.modal-backdrop {
  z-index: 1055 !important;
}

@media (min-width: 992px) {
  .mobile-nav-bar,
  .mobile-profile-btn {
    display: none !important;
  }
}

body.dark .form-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3.204 5.596a.5.5 0 01.707 0L8 9.086l4.089-3.49a.5.5 0 11.656.754l-4.417 3.77a.75.75 0 01-.656 0l-4.417-3.77a.5.5 0 010-.754z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 16px;
}





@media (max-width: 991px) {

  #mainNavbar {
    display: none;
  }

  /* Ensure mobile nav bar is visible and properly positioned */
  .mobile-nav-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Ensure profile button aligns with nav bar items */
  .mobile-profile-btn {
    position: relative !important;
    bottom: auto !important;
    margin: 0 10px !important;
    align-self: center !important;
  }

  /* Ensure nav items are centered vertically */
  .mobile-nav-item {
    align-self: center !important;
  }

  /* Mobile Notification Buttons (Top Left) */
  .mobile-notif-btn,
  .mobile-notif-mute-btn {
    position: fixed;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    z-index: 1050;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: rgba(13, 110, 253, 0.9);
    color: white;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
  }

  /* Mobile Notification Bell - Theme-specific colors */
  .mobile-notif-btn {
    top: 10px;
    color: white;
    transition: all 0.3s ease;
  }

  /* Light Theme: Teal/Cyan background for distinction from hero */
  body.light .mobile-notif-btn {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    color: white;
  }

  body.light .mobile-notif-btn:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0d9488 100%);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.5);
  }

  /* Dark Theme: Teal/Cyan background for distinction from hero */
  body.dark .mobile-notif-btn {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5);
    color: white;
  }

  body.dark .mobile-notif-btn:hover {
    background: linear-gradient(135deg, #7b8ff7 0%, #8b5bb3 100%);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.6);
  }

  .mobile-notif-btn:active {
    transform: scale(0.92);
  }

  .mobile-notif-mute-btn {
    top: 75px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: white;
  }

  .mobile-notif-mute-btn:hover {
    background: linear-gradient(135deg, #7d8590 0%, #5a6268 100%);
  }

  .mobile-notif-mute-btn:active {
    transform: scale(0.92);
  }

  .mobile-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: notifPulse 2s ease-in-out infinite;
    border: none;
  }

  /* Mobile Notification Panel (Slides from Left) */
  .mobile-notif-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    z-index: 1060;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-notif-panel.open {
    left: 0;
  }

  .mobile-notif-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-notif-panel.open .mobile-notif-panel-overlay {
    opacity: 1;
  }

  .mobile-notif-panel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    text-align: right;
  }

  .mobile-notif-panel.open .mobile-notif-panel-content {
    transform: translateX(0);
  }

  .mobile-notif-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }

  .mobile-notif-panel-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--text);
    font-size: 1.2rem;
  }

  .mobile-notif-header-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-notif-header-btn:active {
    background: var(--hover-bg);
    transform: scale(0.95);
  }

  .mobile-notif-panel-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
  }

  .mobile-notif-panel-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--nav-bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-notif-view-all {
    flex: 1;
    display: block;
    text-align: center;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .mobile-notif-view-all:active {
    background: var(--hover-bg);
    color: #0a58ca;
  }

  /* Hide desktop notification dropdown on mobile */
  .notif-dropdown {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .mobile-notif-btn,
  .mobile-notif-mute-btn,
  .mobile-notif-panel {
    display: none !important;
    z-index: 1035;
  }


  

}

@media (max-width: 991px) {

  body > main.container {
    padding: var(--space-3) !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

}





.container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

@media (min-width: 768px) {
  .container-fluid {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

.hero-split {
    width: 100%;
    max-width: 100%;
}

.hero-left {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    min-height: 88vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-right {
    flex: 0 0 66.666%;
    max-width: 66.666%;
    min-height: 88vh;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 68%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 32px;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,0.55)) drop-shadow(0 0 80px rgba(180,140,255,0.25));
    transition: transform .4s ease;
}
.hero-logo-img:hover {
    transform: scale(1.04);
}

/* When no logo is uploaded, expand hero-right to full width */
.hero-no-logo .hero-right {
    flex: 0 0 100%;
    max-width: 100%;
}

/* MOBILE STACK */
@media (max-width: 991px) {
    .hero-landing {
        min-height: auto !important;
    }

    .hero-left,
    .hero-right {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: auto;
        padding: 0.8rem 1.2rem;
    }

    .hero-left {
        padding-top: 1.5rem;
    }

    .hero-logo-img {
        width: 52%;
        max-width: 220px;
        margin-bottom: 0;
    }

    .hero-landing .contact-icons {
        display: flex !important;
        margin-top: 1rem !important;
        gap: 0.75rem !important;
    }

    .hero-landing .contact-icons a.btn {
        width: 46px !important;
        height: 46px !important;
    }

    .hero-landing .contact-icons a img {
        width: 22px !important;
        height: 22px !important;
    }
}

/* ===============================
   iOS-SAFE MODAL LAYOUT (FINAL)
   =============================== */

.modal-content {
  display: flex;
  flex-direction: column;

  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

/* Header & footer keep natural height */
.modal-header,
.modal-footer {
  flex: 0 0 auto;
}

/* Body takes remaining space and scrolls */
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* iOS safe-area protection */
.modal-footer {
  padding-bottom: calc(
    var(--bs-modal-padding, 1rem)
    + env(safe-area-inset-bottom)
  );
}

/* Fix: <form> as direct child of .modal-content must participate in flex layout.
   Affects: bookings edit modal, clients add/edit modals, products modal. */
.modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}


/* ========================================
   NEWBORN VIBES ANIMATION - Baby Theme
   ======================================== */
.closure-balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at center, rgba(255,182,193,0.05) 0%, transparent 60%);
}

.balloon {
    position: absolute;
    bottom: -100px;
    animation-name: babyFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Baby-themed icons using CSS */
.balloon-body {
    width: var(--size);
    height: var(--size);
    position: relative;
    font-size: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wobble 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.balloon-body::before {
    content: var(--icon);
    position: absolute;
    font-size: 1em;
    animation: spin var(--spin-speed) linear infinite;
}

.balloon-string {
    display: none;
}

@keyframes babyFloat {
    0% {
        transform: translateY(0) translateX(0) scale(var(--start-scale));
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(-115vh) translateX(var(--drift)) scale(var(--end-scale)) rotate(var(--rotation));
        opacity: 0;
    }
}

@keyframes wobble {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-3deg) scale(0.98); }
    75% { transform: rotate(6deg) scale(1.02); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Baby-themed variations with randomness */


.balloon-2 { 
    left: 16%; animation-duration: 19s; animation-delay: 2.7s; 
    --drift: -50px; --rotation: -220deg; --size: 38px; --icon: '💕'; 
    --start-scale: 0.9; --end-scale: 1.1; --spin-speed: 0s;
}

.balloon-3 { 
    left: 25%; animation-duration: 16s; animation-delay: 4.1s; 
    --drift: 50px; --rotation: 180deg; --size: 50px; --icon: '🎉';
    --start-scale: 0.6; --end-scale: 1.4; --spin-speed: 12s;
}

.balloon-4 { 
    left: 34%; animation-duration: 21s; animation-delay: 1.4s; 
    --drift: -42px; --rotation: -190deg; --size: 42px; --icon: '⭐'; 
    --start-scale: 0.8; --end-scale: 1.2; --spin-speed: 6s;
}

.balloon-6 { 
    left: 56%; animation-duration: 20s; animation-delay: 5.2s; 
    --drift: -55px; --rotation: -250deg; --size: 40px; --icon: '💙'; 
    --start-scale: 0.85; --end-scale: 1.15; --spin-speed: 10s;
}

.balloon-7 { 
    left: 63%; animation-duration: 22s; animation-delay: 2.1s; 
    --drift: 40px; --rotation: 240deg; --size: 50px; --icon: '🎈'; 
    --start-scale: 0.7; --end-scale: 1.35; --spin-speed: 0s;
}

.balloon-8 { 
    left: 73%; animation-duration: 15s; animation-delay: 4.8s; 
    --drift: -45px; --rotation: -280deg; --size: 44px; --icon: '✨'; 
    --start-scale: 0.8; --end-scale: 1.3; --spin-speed: 7s;
}

.balloon-9 { 
    left: 84%; animation-duration: 18s; animation-delay: 1.2s; 
    --drift: 65px; --rotation: 320deg; --size: 46px; --icon: '💗'; 
    --start-scale: 0.65; --end-scale: 1.4; --spin-speed: 0s;
}

.balloon-10 { 
    left: 12%; animation-duration: 23s; animation-delay: 3.9s; 
    --drift: -38px; --rotation: -210deg; --size: 54px; --icon: '🧸'; 
    --start-scale: 0.7; --end-scale: 1.25; --spin-speed: 9s;
}

.balloon-12 { 
    left: 32%; animation-duration: 19s; animation-delay: 0.7s; 
    --drift: -48px; --rotation: -230deg; --size: 47px; --icon: '🌙'; 
    --start-scale: 0.75; --end-scale: 1.3; --spin-speed: 11s;
}

.balloon-13 { 
    left: 41%; animation-duration: 20s; animation-delay: 3.3s; 
    --drift: 44px; --rotation: 290deg; --size: 39px; --icon: '💖'; 
    --start-scale: 0.85; --end-scale: 1.15; --spin-speed: 0s;
}

.balloon-14 { 
    left: 52%; animation-duration: 16s; animation-delay: 4.4s; 
    --drift: -58px; --rotation: -260deg; --size: 51px; --icon: '🌟'; 
    --start-scale: 0.7; --end-scale: 1.35; --spin-speed: 8s;
}

.balloon-15 { 
    left: 68%; animation-duration: 18s; animation-delay: 2.3s; 
    --drift: 56px; --rotation: 310deg; --size: 43px; --icon: '💝'; 
    --start-scale: 0.8; --end-scale: 1.25; --spin-speed: 0s;
}

/* Responsive: Adjust for mobile */
@media (max-width: 768px) {
    .balloon:nth-child(n+11) {
        display: none;
    }
    .balloon {
        --size: calc(var(--size) * 0.8) !important;
    }
}

@media (max-width: 480px) {
    .balloon:nth-child(n+8) {
        display: none;
    }
    .balloon {
        --size: calc(var(--size) * 0.7) !important;
    }
}
/* ============================================
   Professional Admin Page Styling
   ============================================ */

/* Admin Page Header */
.admin-page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 1.25rem 0;
  margin-bottom: 0;
  border-radius: 8px;
}

/* Public Page Headers - Consistent Spacing */
.services-page-header,
.products-page-header,
.cart-page-header,
.checkout-page-header,
.gallery-page-header,
.page-header-booking,
.orders-page-header,
.member-page-header,
.notif-page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 1.25rem 0;
  margin-bottom: 0;
}

/* Responsive navbar clearance - desktop only */
@media (min-width: 992px) {
  .admin-page-header,
  .services-page-header,
  .products-page-header,
  .cart-page-header,
  .checkout-page-header,
  .gallery-page-header,
  .page-header-booking,
  .orders-page-header,
  .member-page-header,
  .notif-page-header {
    margin-top: 64px;
  }
}

.admin-page-header h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.admin-page-header p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Statistics Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-icon {
  font-size: 2rem;
  min-width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-card-icon {
  transform: scale(1.05);
}

.stat-card-content {
  flex: 1;
}

.stat-card-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Stat Card Variants */
.stat-card-primary {
  background: white;
  border-left: 4px solid var(--primary);
}

.stat-card-primary::before {
  background: var(--primary);
}

.stat-card-primary .stat-card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--on-orange);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.stat-card-primary .stat-card-value {
  color: var(--primary-dark);
}

.stat-card-primary .stat-card-label {
  color: #374151;
}

body.dark .stat-card-primary {
  background: rgba(var(--primary-rgb), 0.1);
  border-left: 4px solid var(--primary);
}

body.dark .stat-card-primary .stat-card-value,
body.dark .stat-card-primary .stat-card-label {
  color: #fed7aa;
}

.stat-card-success {
  background: white;
  border-left: 4px solid #10b981;
}

.stat-card-success::before {
  background: #10b981;
}

.stat-card-success .stat-card-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.stat-card-success .stat-card-value {
  color: #047857;
}

.stat-card-success .stat-card-label {
  color: #374151;
}

body.dark .stat-card-success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid #10b981;
}

body.dark .stat-card-success .stat-card-value,
body.dark .stat-card-success .stat-card-label {
  color: #d1fae5;
}

.stat-card-warning {
  background: white;
  border-left: 4px solid #f59e0b;
}

.stat-card-warning::before {
  background: #f59e0b;
}

.stat-card-warning .stat-card-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.stat-card-warning .stat-card-icon i {
  color: inherit;
}

.stat-card-warning .stat-card-value {
  color: #b45309;
}

.stat-card-warning .stat-card-label {
  color: #374151;
}

body.dark .stat-card-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #f59e0b;
}

body.dark .stat-card-warning .stat-card-icon {
  color: white;
}

body.dark .stat-card-warning .stat-card-icon i {
  color: inherit;
}

body.dark .stat-card-warning .stat-card-value,
body.dark .stat-card-warning .stat-card-label {
  color: #fef3c7;
}

.stat-card-danger {
  background: white;
  border-left: 4px solid #ef4444;
}

.stat-card-danger::before {
  background: #ef4444;
}

.stat-card-danger .stat-card-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.stat-card-danger .stat-card-value {
  color: #b91c1c;
}

.stat-card-danger .stat-card-label {
  color: #374151;
}

body.dark .stat-card-danger {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
}

body.dark .stat-card-danger .stat-card-value,
body.dark .stat-card-danger .stat-card-label {
  color: #fee2e2;
}

.stat-card-info {
  background: white;
  border-left: 4px solid #06b6d4;
}

.stat-card-info::before {
  background: #06b6d4;
}

.stat-card-info .stat-card-icon {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.stat-card-info .stat-card-value {
  color: #0e7490;
}

.stat-card-info .stat-card-label {
  color: #374151;
}

body.dark .stat-card-info {
  background: rgba(6, 182, 212, 0.1);
  border-left: 4px solid #06b6d4;
}

body.dark .stat-card-info .stat-card-value,
body.dark .stat-card-info .stat-card-label {
  color: #cffafe;
}

/* Compact stat cards */
.stat-card-compact {
  padding: 1rem;
}

.stat-card-compact .stat-card-icon {
  font-size: 1.5rem;
  min-width: 48px;
  height: 48px;
}

.stat-card-compact .stat-card-value {
  font-size: 1.5rem;
}

.stat-card-compact .stat-card-label {
  font-size: 0.8rem;
}

/* Calendar view toggle buttons */
.calendar-view-toggle .btn {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.calendar-view-toggle .btn:first-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.calendar-view-toggle .btn:last-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.calendar-view-toggle .btn-primary.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--on-orange);
}

/* Light theme calendar buttons */
body:not(.dark) .calendar-view-toggle .btn-outline-primary {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: white;
  font-weight: 500;
}

body:not(.dark) .calendar-view-toggle .btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-orange);
}

body:not(.dark) .calendar-view-toggle .btn-outline-primary i {
  color: inherit;
}

/* Dark theme calendar buttons */
body.dark .calendar-view-toggle .btn-outline-primary {
  color: #fed7aa;
  border-color: var(--primary);
  background: rgba(30, 30, 30, 0.5);
  font-weight: 500;
}

body.dark .calendar-view-toggle .btn-outline-primary:hover {
  background: rgba(251, 146, 60, 0.25);
  border-color: var(--primary);
  color: var(--on-orange);
}

body.dark .calendar-view-toggle .btn-primary.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--on-orange);
}

/* Booking action buttons - Squared with slight curve */
.booking-actions {
  gap: 0.375rem;
  display: inline-flex;
}

/* Override Bootstrap's btn-group styles that remove border-radius */
.booking-actions.btn-group .btn-action {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.booking-actions .btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.booking-actions .btn-action:hover::before {
  width: 100%;
  height: 100%;
}

.booking-actions .btn-action i {
  position: relative;
  z-index: 1;
}

/* Client actions button group styling (matches booking-actions) */
.client-actions.btn-group .btn-action {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Allow standalone btn-action links to expand with content */
a.btn-action {
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
}

.client-actions .btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.client-actions .btn-action:hover::before {
  width: 100%;
  height: 100%;
}

.client-actions .btn-action i {
  position: relative;
  z-index: 1;
}

/* Order actions button group styling (matches booking-actions) */
.order-actions.btn-group .btn-action {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.order-actions .btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.order-actions .btn-action:hover::before {
  width: 100%;
  height: 100%;
}

.order-actions .btn-action i {
  position: relative;
  z-index: 1;
}

/* Service actions button group styling (matches booking-actions) */
.service-actions.btn-group .btn-action {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-actions .btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.service-actions .btn-action:hover::before {
  width: 100%;
  height: 100%;
}

.service-actions .btn-action i {
  position: relative;
  z-index: 1;
}

/* Staff actions button group styling (matches booking-actions) */
.staff-actions.btn-group .btn-action {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.staff-actions .btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.staff-actions .btn-action:hover::before {
  width: 100%;
  height: 100%;
}

.staff-actions .btn-action i {
  position: relative;
  z-index: 1;
}

.btn-action-secondary {
  color: #fff;
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-action-secondary:hover {
  color: #fff;
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

body.dark .btn-action-secondary {
  color: #fff;
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

body.dark .btn-action-secondary:hover {
  color: #fff;
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.5);
}

/* Closure actions button group styling (matches booking-actions) */
.closure-actions.btn-group .btn-action {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.closure-actions .btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.closure-actions .btn-action:hover::before {
  width: 100%;
  height: 100%;
}

.closure-actions .btn-action i {
  position: relative;
  z-index: 1;
}

/* Notification actions button group styling (matches booking-actions) */
.notification-actions.btn-group .btn-action {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.notification-actions .btn-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.notification-actions .btn-action:hover::before {
  width: 100%;
  height: 100%;
}

.notification-actions .btn-action i {
  position: relative;
  z-index: 1;
}

.btn-action-primary {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.btn-action-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-action-info {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.btn-action-info:hover {
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-action-success {
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-action-success:hover {
  color: #fff;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-action-warning {
  color: #1a1a1a;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-action-warning:hover {
  color: #1a1a1a;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-action-danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-action-danger:hover {
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

body.dark .btn-action-info {
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

body.dark .btn-action-info:hover {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

body.dark .btn-action-success {
  color: #fff;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

body.dark .btn-action-success:hover {
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

body.dark .btn-action-danger {
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

body.dark .btn-action-danger:hover {
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

body.dark .btn-action-warning {
  color: #1a1a1a;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

body.dark .btn-action-warning:hover {
  color: #1a1a1a;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

body.dark .btn-action-primary {
  color: #fff;
  background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

body.dark .btn-action-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

/* Fix default button icon colors on light theme */
body:not(.dark) .btn i {
  color: inherit;
}

body:not(.dark) .btn-outline-info i {
  color: #0dcaf0;
}

body:not(.dark) .btn-outline-success i {
  color: #198754;
}

body:not(.dark) .btn-outline-danger i {
  color: #dc3545;
}

body:not(.dark) .btn-primary i {
  color: var(--on-orange);
}

body:not(.dark) .btn-outline-secondary {
  background: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #495057 !important;
}

body:not(.dark) .btn-outline-secondary i {
  color: #495057 !important;
}

body:not(.dark) .btn-outline-secondary:hover {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
}

body:not(.dark) .btn-outline-secondary:hover i {
  color: white !important;
}

.stat-card-secondary {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  color: white;
}

.stat-card-secondary .stat-card-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

body:not(.dark) .stat-card-secondary .stat-card-icon {
  color: #330867;
  background: rgba(51, 8, 103, 0.1);
}

/* Modern Table Styling */
.modern-table {
  border-collapse: separate;
  border-spacing: 0;
}

.modern-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--on-orange);
}

.modern-table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.modern-table thead th:first-child {
  border-top-right-radius: 8px;
}

.modern-table thead th:last-child {
  border-top-left-radius: 8px;
}

.modern-table thead th a {
  color: var(--on-orange);
  text-decoration: none;
  font-weight: 600;
}

.modern-table thead th a:hover {
  color: rgba(15,23,42,0.75);
}

/* Sticky Table Header */
.table-header-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

body:not(.dark) .modern-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

body:not(.dark) .modern-table thead th {
  color: var(--on-orange) !important;
  background: transparent;
}

body:not(.dark) .modern-table thead th a {
  color: white !important;
}

.modern-table tbody tr {
  transition: background 0.2s ease;
  background: white;
}

.modern-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.modern-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Row States */
.table-row-expired {
  background-color: rgba(108,117,125,0.08) !important;
  opacity: 0.7;
}

.table-row-closure {
  background-color: rgba(220,53,69,0.08) !important;
}

/* Service and DateTime Info in Table */
.service-info {
  text-align: center;
}

.service-info .fw-semibold {
  color: var(--bs-body-color);
  margin-bottom: 0.25rem;
}

body.dark .service-info .fw-semibold {
  color: #e5e7eb;
}

body.dark .service-info .text-muted {
  color: #9ca3af !important;
}

.datetime-info {
  text-align: center;
}

.datetime-info div {
  margin-bottom: 0.25rem;
}

/* Light theme: ensure icons in datetime-info are dark */
body:not(.dark) .datetime-info i {
  color: #475569 !important;
}

/* Dark theme: keep icons light */
body.dark .datetime-info i {
  color: #94a3b8 !important;
}

/* Card Enhancements */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 1.25rem;
}

.card-header h5 {
  color: #1e293b;
  font-weight: 600;
}

.card-header i {
  color: #475569;
}

.card-body {
  padding: 1.5rem;
}

/* Form Label Icons */
.form-label i {
  color: #475569;
}

body.dark .form-label i {
  color: #94a3b8;
}

/* Button Enhancements */
.btn-group-sm .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

body:not(.dark) .btn-outline-info {
  color: #0dcaf0;
  border-color: #0dcaf0;
}

body:not(.dark) .btn-outline-success {
  color: #198754;
  border-color: #198754;
}

body:not(.dark) .btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

body:not(.dark) .btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

body:not(.dark) .btn-outline-info i,
body:not(.dark) .btn-outline-success i,
body:not(.dark) .btn-outline-danger i,
body:not(.dark) .btn-outline-primary i {
  color: inherit;
}

.btn-outline-info:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
  transform: scale(1.05);
}

/* Pagination Styling */
.pagination {
  gap: 0.5rem;
}

.page-item .page-link {
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  transition: all 0.2s ease;
}

.page-item .page-link:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--on-orange);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.4);
  color: var(--on-orange);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alert Enhancements */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Dark Theme Adjustments */
body.dark .stat-card {
  background: linear-gradient(135deg, rgba(30,30,30,0.95) 0%, rgba(40,40,40,0.95) 100%);
  border-color: rgba(255,255,255,0.1);
}

body.dark .stat-card-icon {
  background: rgba(255,255,255,0.1);
}

body.dark .modern-table tbody tr {
  background: rgba(30,30,30,0.5);
}

body.dark .modern-table tbody tr:hover {
  background: rgba(var(--primary-rgb), 0.15);
}

body.dark .modern-table tbody td {
  border-bottom-color: rgba(255,255,255,0.08);
}

body.dark .card {
  background: rgba(30,30,30,0.8);
}

body.dark .card-header {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--secondary-rgb), 0.2) 100%);
  border-bottom-color: rgba(255,255,255,0.1);
}

body.dark .page-item .page-link {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #a8b5ff;
}

body.dark .modern-table tbody tr.table-row-expired,
body.dark tr.table-row-expired {
  background: rgba(108,117,125,0.18) !important;
  opacity: 0.75;
}

body.dark .modern-table tbody tr.table-row-closure,
body.dark tr.table-row-closure {
  background: rgba(220,53,69,0.18) !important;
}

body.dark tr.table-row-closure td {
  color: #fca5a5 !important;
}

body.dark tr.table-row-closure td .badge {
  opacity: 0.9;
}

body.dark tr.table-row-closure td .text-muted {
  color: #f87171 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .stat-card {
    padding: 0.75rem;
  }
  
  .stat-card-icon {
    font-size: 1.5rem;
    min-width: 44px;
    height: 44px;
  }
  
  .stat-card-value {
    font-size: 1.25rem;
  }
  
  .stat-card-label {
    font-size: 0.75rem;
  }
  
  /* Compact control panel cards */
  .quick-nav-card .card-body {
    padding: 1.25rem 0.9rem !important;
  }
  
  .quick-nav-card i {
    font-size: 1.75rem !important;
  }
  
  .quick-nav-card h5 {
    font-size: 0.85rem;
    line-height: 1.2;
  }
  
  .admin-page-header h2 {
    font-size: 1.25rem;
  }
  
  .modern-table thead th,
  .modern-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  /* Hide booking creation date column on tablet/mobile */
  .modern-table thead th:nth-child(5),
  .modern-table tbody td:nth-child(5) {
    display: none;
  }
  
  /* Compress action buttons on mobile */
  .booking-actions {
    flex-wrap: wrap;
    gap: 0.25rem !important;
  }
  
  .btn-action {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.75rem;
  }
  
  /* Reduce service info text on mobile */
  .service-info {
    font-size: 0.8rem;
  }
  
  .service-info div {
    margin-bottom: 0.25rem;
  }
  
  /* Reduce datetime info spacing */
  .datetime-info {
    font-size: 0.8rem;
  }
  
  .datetime-info div {
    margin-bottom: 0.1rem;
  }
}

/* Ultra-compact table on very small screens */
@media (max-width: 576px) {
  /* Force stat card columns to 2 per row (50% width) on mobile */
  .col-xl-3.col-lg-6.col-md-6 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
  
  .modern-table thead th,
  .modern-table tbody td {
    padding: 0.5rem 0.35rem;
    font-size: 0.75rem;
  }
  
  .btn-action {
    padding: 0.35rem 0.4rem !important;
    font-size: 0.7rem;
  }
  
  .stat-card-label {
    font-size: 0.7rem;
  }
  
  /* Hide service staff info on phone */
  .service-info small {
    display: none;
  }
  
  /* Stack info more compactly */
  .datetime-info div {
    line-height: 1.2;
  }
}

/* Quick Navigation Cards */
.quick-nav-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
}

.quick-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-nav-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.quick-nav-card:hover::before {
  opacity: 1;
}

.quick-nav-card .card-body {
  position: relative;
  z-index: 1;
}

.quick-nav-card i {
  transition: transform 0.3s ease;
}

.quick-nav-card:hover i {
  transform: scale(1.1);
}

.quick-nav-card h5 {
  color: #1e293b;
  transition: color 0.3s ease;
  font-weight: 600;
}

.quick-nav-card:hover h5 {
  color: #0f172a;
}

.logout-nav-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(220, 38, 38, 0.04) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.logout-nav-card:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.15);
}

.logout-nav-card::before {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.logout-nav-card i {
  color: #fff;
}

body.dark .quick-nav-card {
  background: rgba(30,30,30,0.6);
}

body.dark .quick-nav-card::before {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
}

body.dark .logout-nav-card {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
}

/* Additional mobile-specific rules for consistent alignment */
@media (max-width: 768px) {
  .mobile-nav-bar {
    height: 80px !important;
  }
  
  .mobile-profile-btn {
    width: 64px !important;
    height: 64px !important;
    position: relative !important;
    margin: 0 10px !important;
  }
  
  .mobile-nav-item {
    min-height: 64px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .mobile-nav-bar {
    height: 75px !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }
  
  .mobile-profile-btn {
    width: 60px !important;
    height: 60px !important;
    margin: 0 8px !important;
  }
  
  .mobile-nav-item {
    font-size: 0.65rem;
    min-height: 60px;
  }
  
  .mobile-nav-item i {
    font-size: 1.3rem;
  }
  
  .mobile-profile-btn i {
    font-size: 1.8rem !important;
  }
}

/* Hide language toggle buttons (Arabic-only temporary setup) */
#langToggle {
  display: none !important;
}

/* ── Bookings Page: card layout (.bk-*) ── */

/* Stat strip */
.bk-stat {
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 12px;
  padding: 0.875rem 0.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.bk-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.bk-stat-lbl {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.2rem;
  font-weight: 500;
}
.bk-stat--upcoming .bk-stat-num { color: #f59e0b; }
.bk-stat--approved .bk-stat-num { color: #10b981; }

/* Card shell */
.bk-card {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: #fff;
}
.bk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

/* Coloured top accent bar based on status */
.bk-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 14px 14px 0 0;
}
.bk-status-pending::before  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bk-status-approved::before { background: linear-gradient(90deg, #10b981, #34d399); }
.bk-status-cancelled::before{ background: linear-gradient(90deg, #ef4444, #f87171); }

/* Card inner sections */
.bk-card-body {
  padding: 1.25rem 1.25rem 0.75rem;
  flex: 1;
}
.bk-card-footer {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  background: rgba(0, 0, 0, 0.015);
}

/* Service name */
.bk-service-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

/* Meta rows (date, time) */
.bk-meta {
  font-size: 0.83rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.bk-meta i { color: var(--primary); font-size: 0.875rem; flex-shrink: 0; }

/* Status badge */
.bk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bk-badge-pending  { background: rgba(245, 158, 11, 0.12); color: #92400e; }
.bk-badge-approved { background: rgba(16, 185, 129, 0.12); color: #065f46; }
.bk-badge-cancelled{ background: rgba(239,  68,  68, 0.12); color: #991b1b; }

/* Booking ID pill */
.bk-id-pill {
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Closure warning banner inside card */
.bk-closure-banner {
  font-size: 0.78rem;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Action buttons */
.bk-btn-view {
  background: rgba(var(--primary-rgb), 0.1);
  color: #4f46e5;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  flex: 1;
}
.bk-btn-view:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.bk-btn-cancel {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  flex: 1;
}
.bk-btn-cancel:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.bk-btn-cancel-disabled {
  background: rgba(0, 0, 0, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-weight: 500;
  cursor: not-allowed;
  flex: 1;
  opacity: 0.7;
}

/* Empty state */
.bk-empty {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  color: #94a3b8;
}
.bk-empty > i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  color: #cbd5e1;
}

/* ── Dark mode ── */
body.dark .bk-stat {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.22);
}
body.dark .bk-stat-lbl { color: #94a3b8; }

body.dark .bk-card {
  background: rgba(22, 24, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
body.dark .bk-service-name { color: #e2e8f0; }
body.dark .bk-meta         { color: #94a3b8; }
body.dark .bk-card-footer  { border-top-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
body.dark .bk-id-pill       { background: rgba(255,255,255,0.06); color: #64748b; }

body.dark .bk-badge-pending  { background: rgba(245,158,11,0.18);  color: #fcd34d; }
body.dark .bk-badge-approved { background: rgba(16,185,129,0.18);  color: #6ee7b7; }
body.dark .bk-badge-cancelled{ background: rgba(239, 68,68, 0.18); color: #fca5a5; }

body.dark .bk-closure-banner { color: #fca5a5; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); }

body.dark .bk-btn-view         { background: rgba(var(--primary-rgb),0.15); color: #a5b4fc; border-color: rgba(var(--primary-rgb),0.3); }
body.dark .bk-btn-view:hover   { background: var(--primary); color: #fff; border-color: var(--primary); }
body.dark .bk-btn-cancel       { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
body.dark .bk-btn-cancel:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
body.dark .bk-btn-cancel-disabled { background: rgba(255,255,255,0.04); color: #475569; border-color: rgba(255,255,255,0.08); }

body.dark .bk-empty   { color: #475569; }
body.dark .bk-empty > i { color: #334155; }


/* ── Admin Clients: card layout (.cl-*) ── */

/* Stat strip */
.cl-stat {
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 12px;
  padding: 0.875rem 0.5rem;
  text-align: center;
}
.cl-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.cl-stat-lbl {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.2rem;
  font-weight: 500;
}
.cl-stat--total { color: var(--primary); }
.cl-stat--found { color: #10b981; }
.cl-stat--new   { color: #f59e0b; }

/* Card shell */
.cl-card {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: #fff;
}
.cl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}
.cl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 14px 14px 0 0;
}

/* Card inner sections */
.cl-card-body {
  padding: 1.25rem 1.25rem 0.75rem;
  flex: 1;
}
.cl-card-footer {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.015);
}

/* Avatar */
.cl-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}
.cl-av-1 { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.cl-av-2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cl-av-3 { background: linear-gradient(135deg, #10b981, #0d9488); }
.cl-av-4 { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.cl-av-5 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.cl-av-6 { background: linear-gradient(135deg, #14b8a6, #22d3ee); }

/* Client name */
.cl-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

/* Client ID pill */
.cl-id-pill {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-weight: 600;
}

/* Booking count badge */
.cl-booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.12);
  color: #4f46e5;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.cl-booking-badge:hover {
  background: var(--primary);
  color: #fff;
}
.cl-booking-zero {
  background: rgba(0, 0, 0, 0.05);
  color: #94a3b8;
  cursor: default;
}

/* Meta rows (phone, email, date) */
.cl-meta {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.cl-meta i {
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.cl-meta-link {
  color: #475569;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-meta-link:hover { color: var(--primary); text-decoration: underline; }
.cl-wa-btn {
  color: #22c55e;
  font-size: 1rem;
  flex-shrink: 0;
  text-decoration: none;
}
.cl-wa-btn:hover { color: #16a34a; }

/* Action buttons */
.cl-btn-edit {
  flex: 1;
  background: rgba(var(--primary-rgb), 0.1);
  color: #4f46e5;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cl-btn-edit:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cl-btn-delete {
  flex: 1;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cl-btn-delete:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.cl-btn-ban {
  flex: 1;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cl-btn-ban:hover {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
.cl-btn-ban.banned {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.25);
}
.cl-btn-ban.banned:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.cl-blocked-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.25);
  vertical-align: middle;
  margin-inline-start: 6px;
}

/* Empty state */
.cl-empty {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  color: #94a3b8;
}
.cl-empty i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  color: #cbd5e1;
}

/* ── Dark mode ── */
body.dark .cl-stat {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.22);
}
body.dark .cl-stat-lbl { color: #94a3b8; }

body.dark .cl-card {
  background: rgba(22, 24, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
body.dark .cl-card-footer  { border-top-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
body.dark .cl-name         { color: #e2e8f0; }
body.dark .cl-meta         { color: #94a3b8; }
body.dark .cl-meta-link    { color: #94a3b8; }
body.dark .cl-meta-link:hover { color: #a5b4fc; }
body.dark .cl-id-pill      { background: rgba(255,255,255,0.06); color: #64748b; }
body.dark .cl-booking-badge { background: rgba(var(--primary-rgb),0.18); color: #a5b4fc; }
body.dark .cl-booking-zero  { background: rgba(255,255,255,0.05); color: #475569; }
body.dark .cl-btn-edit      { background: rgba(var(--primary-rgb),0.15); color: #a5b4fc; border-color: rgba(var(--primary-rgb),0.3); }
body.dark .cl-btn-edit:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
body.dark .cl-btn-delete     { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
body.dark .cl-btn-delete:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
body.dark .cl-btn-ban        { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
body.dark .cl-btn-ban:hover  { background: #f59e0b; color: #fff; border-color: #f59e0b; }
body.dark .cl-btn-ban.banned { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
body.dark .cl-btn-ban.banned:hover { background: #10b981; color: #fff; border-color: #10b981; }
body.dark .cl-blocked-badge  { background: rgba(239,68,68,0.2); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
body.dark .cl-empty          { color: #475569; }
body.dark .cl-empty i        { color: #334155; }


/* ── Admin Dashboard: section titles, icon wrappers, quick-nav polish ── */

/* Section title bar */
.dash-section-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
}
.dash-section-title h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}
.dash-section-title p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}
body.dark .dash-section-title { border-bottom-color: rgba(var(--primary-rgb),0.25); }
body.dark .dash-section-title h4 { color: #e2e8f0; }

/* Quick-nav icon wrapper */
.qnav-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.55rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quick-nav-card:hover .qnav-icon-wrap { transform: scale(1.1); }

/* Icon wrap color variants */
.qnav-blue   { background: linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; box-shadow: 0 4px 14px rgba(59,130,246,.28); }
.qnav-green  { background: linear-gradient(135deg,#10b981,#059669); color:#fff; box-shadow: 0 4px 14px rgba(16,185,129,.28); }
.qnav-amber  { background: linear-gradient(135deg,#f59e0b,#d97706); color:#fff; box-shadow: 0 4px 14px rgba(245,158,11,.28); }
.qnav-cyan   { background: linear-gradient(135deg,#06b6d4,#0891b2); color:#fff; box-shadow: 0 4px 14px rgba(6,182,212,.28); }
.qnav-slate  { background: linear-gradient(135deg,#64748b,#475569); color:#fff; box-shadow: 0 4px 14px rgba(100,116,139,.28); }
.qnav-red    { background: linear-gradient(135deg,#ef4444,#dc2626); color:#fff; box-shadow: 0 4px 14px rgba(239,68,68,.28); }
.qnav-indigo { background: linear-gradient(135deg,#6366f1,#4f46e5); color:#fff; box-shadow: 0 4px 14px rgba(var(--primary-rgb),.28); }
.qnav-teal   { background: linear-gradient(135deg,#14b8a6,#0d9488); color:#fff; box-shadow: 0 4px 14px rgba(20,184,166,.28); }
.qnav-wa     { background: linear-gradient(135deg,#25d366,#128c49); color:#fff; box-shadow: 0 4px 14px rgba(37,211,102,.28); }

/* Quick-nav card title & subtitle */
.quick-nav-card h5 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.1rem; }
.qnav-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}
body.dark .qnav-sub { color: #64748b; }

/* Purple stat card (services) */
.stat-card-purple { background: white; border-left: 4px solid #8b5cf6; }
.stat-card-purple::before { background: #8b5cf6; }
.stat-card-purple .stat-card-icon {
  background: linear-gradient(135deg,#8b5cf6,#7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139,92,246,.3);
}
.stat-card-purple .stat-card-value  { color: #6d28d9; }
.stat-card-purple .stat-card-label  { color: #374151; }
body.dark .stat-card-purple {
  background: rgba(139,92,246,.1);
  border-left: 4px solid #8b5cf6;
}
body.dark .stat-card-purple .stat-card-value,
body.dark .stat-card-purple .stat-card-label { color: #ede9fe; }

/* Dark-mode adjustments for new quick-nav cards */
body.dark .quick-nav-card h5 { color: #e2e8f0; }
body.dark .quick-nav-card:hover h5 { color: #f8fafc; }

/* ===========================
   Dashboard Donut Chart (CSS-only, no JS, fully theme-aware)
   =========================== */
.dash-donut {
  --deg-a: 0deg;
  --deg-p: 0deg;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    #10b981 0deg var(--deg-a),
    #f59e0b var(--deg-a) var(--deg-p),
    #ef4444 var(--deg-p) 360deg
  );
  position: relative;
  flex-shrink: 0;
}
.dash-donut-empty {
  background: #e2e8f0;
}
body.dark .dash-donut-empty {
  background: #334155;
}
.dash-donut-hole {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--card-bg, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dash-donut-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text, #1e293b);
  line-height: 1.1;
}
.dash-donut-sub {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 2px;
  text-align: center;
}
body.dark .dash-donut-sub { color: #94a3b8; }
.dash-donut-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #374151;
}
body.dark .dash-legend-item { color: #e2e8f0; }
.dash-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Admin bookings: clickable stat cards ──────────────────────────────── */
a .stat-card-compact {
  cursor: pointer;
}
.stat-card-compact.stat-active {
  outline: 2px solid rgba(var(--primary-rgb),0.55);
  outline-offset: 2px;
}

/* ── Client avatar in admin bookings table ─────────────────────────────── */
.bk-client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark .bk-client-avatar { opacity: 0.88; }
body.dark .card-header .fw-semibold { color: #e2e8f0 !important; }
body.dark .card-header h5,
body.dark .card-header h4 { color: #e2e8f0; }

/* table-light thead dark override */
body.dark .table-light,
body.dark .table-light > * { --bs-table-bg: rgba(255,255,255,0.05) !important; --bs-table-color: #cbd5e1 !important; }
body.dark thead.table-light th { background: rgba(255,255,255,0.06) !important; color: #cbd5e1 !important; border-color: rgba(255,255,255,0.08) !important; }

/* Stat card label: readable on both themes via specificity */
.stat-card-primary .stat-card-label,
.stat-card-info .stat-card-label,
.stat-card-success .stat-card-label,
.stat-card-warning .stat-card-label,
.stat-card-danger .stat-card-label,
.stat-card-purple .stat-card-label { color: #374151; }

body.dark .stat-card-primary .stat-card-label,
body.dark .stat-card-info .stat-card-label,
body.dark .stat-card-success .stat-card-label,
body.dark .stat-card-warning .stat-card-label,
body.dark .stat-card-danger .stat-card-label,
body.dark .stat-card-purple .stat-card-label { color: #e2e8f0; }

/* "Show all" button visibility in dark card-header */
body.dark .card-header .btn-outline-primary { color: #a8b5ff; border-color: #a8b5ff; }
body.dark .card-header .btn-outline-primary:hover { background: #a8b5ff; color: #1e1b4b; }

/* -- Mobile Utility Pill - collapsible, bell always visible ----------------- */
/* Bell + toggle handle always shown; mute/theme/lang expand on tap.         */
/* data-user=guest|client|admin drives visibility via CSS (no PHP branch).   */

@media (max-width: 991px) {
  .mobile-util-pill {
    position: fixed;
    left: 12px;
    top: max(8px, env(safe-area-inset-top));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 999px;
    z-index: 1040;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  }
  body.light .mobile-util-pill {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.09);
  }
  body.dark .mobile-util-pill {
    background: rgba(28,28,28,0.84);
    border: 1px solid rgba(255,255,255,0.1);
  }

  /* Pill buttons */
  .util-pill-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.05rem;
    transition: background 0.18s ease, transform 0.15s ease;
  }
  .util-pill-btn:hover  { background: rgba(var(--primary-rgb),0.13); }
  .util-pill-btn:active { transform: scale(0.86); }
  body.light .util-pill-btn { color: #2d2d2d; }
  body.dark  .util-pill-btn { color: #e2e8f0; }

  /* Notification badge */
  #mobileNotifBtn .mobile-notif-badge {
    position: absolute;
    top: 0; right: 0;
    transform: translate(30%, -30%);
  }

  /* Expand/collapse toggle handle */
  .util-pill-toggle {
    width: 28px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease;
  }
  body.light .util-pill-toggle { color: rgba(0,0,0,0.28); }
  body.dark  .util-pill-toggle { color: rgba(255,255,255,0.28); }
  .util-pill-toggle:hover { color: var(--primary) !important; }
  .util-pill-toggle i {
    font-size: 0.75rem;
    line-height: 1;
  }

  /* Expandable section */
  .util-pill-extras {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease;
  }
  .mobile-util-pill.expanded .util-pill-extras {
    max-height: 200px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Separator inside extras */
  .util-pill-sep {
    width: 18px;
    height: 1px;
    margin: 1px 0;
    border-radius: 1px;
    flex-shrink: 0;
  }
  body.light .util-pill-sep { background: rgba(0,0,0,0.12); }
  body.dark  .util-pill-sep { background: rgba(255,255,255,0.12); }

  /* Guest: no bell, no toggle handle, no mute/sep; theme always visible */
  .mobile-util-pill[data-user="guest"] #mobileNotifBtn    { display: none; }
  .mobile-util-pill[data-user="guest"] .util-pill-toggle  { display: none; }
  .mobile-util-pill[data-user="guest"] #mobileNotifMuteBtn{ display: none; }
  .mobile-util-pill[data-user="guest"] .util-pill-sep     { display: none; }
  .mobile-util-pill[data-user="guest"] .util-pill-extras  {
    max-height: 200px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Lang: always hidden */
  #mobileLangToggle { display: none; }
}

@media (min-width: 992px) {
  .mobile-util-pill { display: none !important; }
}

/* ============================================================
   PWA Install Banner
   Slides up from above the bottom nav bar on mobile only.
   ============================================================ */
.pwa-install-banner {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 8px);
  left: 12px;
  right: 12px;
  z-index: 1025;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  padding: 12px 16px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.pwa-install-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
body.dark .pwa-install-banner {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pwa-banner-icon {
  font-size: 1.5rem;
  color: var(--primary, #0d6efd);
  flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text);
}
.pwa-banner-text strong {
  font-size: 0.83rem;
}
.pwa-install-btn {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 0.8rem;
}
.pwa-dismiss-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted, #6c757d);
  font-size: 1.3rem;
  padding: 0 2px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.pwa-dismiss-btn:hover { opacity: 1; }

/* ── Trial countdown banner ──────────────────────────────────────────────── */
.trial-banner {
  position: sticky;
  top: 0;
  z-index: 1060;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.trial-banner-warning {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
}
.trial-banner a.trial-banner-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.trial-banner a.trial-banner-link:hover {
  opacity: 0.85;
}
.dark .trial-banner {
  background: linear-gradient(90deg, #b45309, #c2410c);
}

