/* =========================================================
   SaaS LandingPage Platform — Global Stylesheet
   Stack: Bootstrap 5 + Custom CSS
   Design: Dark Sidebar (Star Admin 2 Pro inspired)
   ========================================================= */

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

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  --sidebar-bg: #1f1e29;
  --sidebar-width: 260px;
  --sidebar-text: #a2a5b9;
  --sidebar-active: #ffffff;
  --sidebar-hover-bg: rgba(111, 66, 193, 0.12);
  --sidebar-border: rgba(255, 255, 255, 0.05);
  --sidebar-icon: #a78bfa;

  --topbar-bg: #ffffff;
  --topbar-height: 64px;

  --body-bg: #f3f4f6;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);

  --accent: #6f42c1;
  --accent-gradient: linear-gradient(135deg, #6f42c1 0%, #4f46e5 100%);
  --accent-hover: #5a32a3;

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;

  --success: #10b981;
  --warning: #c27a00;
  --danger: #ef4444;
  --info: #2563eb;

  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;

  --transition: all 0.2s ease;
}

/* ── Visual Themes ──────────────────────────────────────── */
[data-theme="dark"] {
  --body-bg: #0b0f19;
  --card-bg: #111827;
  --card-border: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --topbar-bg: #111827;
  --sidebar-border: rgba(255, 255, 255, 0.08);
}

[data-theme="system-colors"] {
  --body-bg: #0f172a;
  --card-bg: #1e293b;
  --card-border: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --topbar-bg: #1e293b;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* Theme overrides for core UI components */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="system-colors"] .form-control,
[data-theme="system-colors"] .form-select {
  background-color: var(--body-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--card-border) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="system-colors"] .form-control:focus,
[data-theme="system-colors"] .form-select:focus {
  background-color: var(--body-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--accent) !important;
}

[data-theme="dark"] .table,
[data-theme="system-colors"] .table {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th,
[data-theme="system-colors"] .table td,
[data-theme="system-colors"] .table th {
  border-color: var(--card-border) !important;
}

[data-theme="dark"] .dropdown-menu,
[data-theme="system-colors"] .dropdown-menu {
  background-color: var(--card-bg) !important;
  border-color: var(--card-border) !important;
}

[data-theme="dark"] .dropdown-item,
[data-theme="system-colors"] .dropdown-item {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="system-colors"] .dropdown-item:hover {
  background-color: var(--body-bg) !important;
  color: var(--text-primary) !important;
}

/* ── Base ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #8b5cf6;
}

::selection {
  background: rgba(111, 66, 193, 0.4);
  color: #fff;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--sidebar-bg);
}

::-webkit-scrollbar-thumb {
  background: #2d3251;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Logo */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  min-height: var(--topbar-height);
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

.sidebar-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--sidebar-active);
  letter-spacing: -0.3px;
}

.sidebar-brand-name span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--sidebar-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Nav */
.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar-section-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #8a8d9f;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #8a8d9f;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  user-select: none;
}

.sidebar-section-header:hover {
  color: var(--sidebar-active);
}

.sidebar-item {
  padding: 0 12px;
  margin-bottom: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  color: var(--sidebar-text);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 13.5px;
}

.sidebar-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-active);
}

.sidebar-link.active {
  background: rgba(111, 66, 193, 0.2);
  color: var(--sidebar-active);
}

.sidebar-link .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-link.active .icon {
  color: var(--accent);
}

/* Tenant info at bottom */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-footer .tenant-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(111, 66, 193, 0.1);
  border: 1px solid rgba(111, 66, 193, 0.2);
}

.tenant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.tenant-info .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sidebar-active);
}

.tenant-info .plan {
  font-size: 11px;
  color: var(--sidebar-text);
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 999;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.breadcrumb-custom .sep {
  opacity: 0.4;
}

.breadcrumb-custom .current {
  color: var(--accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.topbar-btn:hover {
  background: var(--sidebar-hover-bg);
  color: var(--accent);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.user-menu:hover {
  background: rgba(0, 0, 0, 0.05);
}

.user-menu .avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.user-menu .user-name {
  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: 28px;
  min-height: calc(100vh - var(--topbar-height));
  transition: var(--transition);
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--card-border);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  padding: 22px;
}

/* Stat Cards */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.stat-card:hover {
  border-color: rgba(111, 66, 193, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.purple {
  background: rgba(111, 66, 193, 0.15);
  color: #8b5cf6;
}

.stat-icon.blue {
  background: rgba(13, 110, 253, 0.15);
  color: #60a5fa;
}

.stat-icon.green {
  background: rgba(32, 201, 151, 0.15);
  color: #20c997;
}

.stat-icon.orange {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =========================================================
   TABLES
   ========================================================= */
.table-custom {
  color: var(--text-primary);
  margin: 0;
}

.table-custom thead th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
  border-top: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 18px;
}

.table-custom tbody td {
  border-color: var(--card-border);
  padding: 14px 18px;
  vertical-align: middle;
  color: var(--text-secondary);
}

.table-custom tbody tr {
  transition: var(--transition);
}

.table-custom tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* =========================================================
   BADGES / STATUS
   ========================================================= */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

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

.badge-status.confirmed,
.badge-status.active {
  background: rgba(32, 201, 151, 0.40);
  color: #007250;
}

.badge-status.pending {
  background: rgba(255, 193, 7, 0.40);
  color: #ffc107;
}

.badge-status.cancelled,
.badge-status.suspended {
  background: rgba(244, 67, 54, 0.40);
  color: #f44336;
}

.badge-status.completed {
  background: rgba(13, 110, 253, 0.40);
  color: #60a5fa;
}

.badge-status.trial {
  background: rgba(111, 66, 193, 0.15);
  color: #8b5cf6;
}

.badge-status.no_show {
  background: rgba(253, 126, 20, 0.25);
  color: #d9480f;
}

.badge-status.none {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* =========================================================
   FORMS
   ========================================================= */
.form-control,
.form-select {
  background: #f9fafb;
  border: 2px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  color: #1f2937;
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.25);
  color: #111827;
  outline: none;
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-select option {
  background: #ffffff;
  color: #111827;
}

.form-check-input {
  background-color: #f9fafb;
  border: 2px solid #cbd5e1;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}

.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.25);
  outline: none;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
  color: #fff;
}

.btn-outline-secondary {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
}

.btn-outline-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* =========================================================
   ALERTS (Flash Messages)
   ========================================================= */
.flash-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-message.success {
  background: rgba(32, 201, 151, 0.40);
  border: 1px solid rgba(12, 113, 82, 0.582);
  color: #056649;
}

.flash-message.error {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.25);
  color: #f44336;
}

.flash-message.warning {
  background: rgba(194, 122, 0, 0.08);
  border: 1px solid rgba(194, 122, 0, 0.2);
  color: var(--warning);
}

.flash-message.info {
  background: rgba(23, 162, 184, 0.12);
  border: 1px solid rgba(23, 162, 184, 0.25);
  color: #17a2b8;
}

.flash-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  font-size: 16px;
}

.flash-close:hover {
  opacity: 1;
}

/* =========================================================
   AUTH PAGES
   ========================================================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background: var(--body-bg);
}

.auth-left {
  width: 45%;
  background: linear-gradient(145deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 66, 193, 0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.auth-left::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.2) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-brand-logo {
  width: 64px;
  height: 64px;
  background: var(--accent-gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(111, 66, 193, 0.5);
}

.auth-brand-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.auth-brand-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-box h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-box p.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

/* =========================================================
   PUBLIC BOOKING PAGE
   ========================================================= */
.booking-wrapper {
  min-height: 100vh;
  background: var(--body-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.booking-card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.booking-header {
  background: var(--accent-gradient);
  padding: 28px 32px;
  text-align: center;
}

.booking-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.booking-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  margin: 0;
}

.booking-body {
  padding: 32px;
}

/* Step Indicator */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #cbd5e1;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}

.step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-align: center;
}

.step-line {
  height: 2px;
  background: #cbd5e1;
  flex: 1;
  margin: 0 10px;
  margin-top: -22px;
  z-index: 1;
  transition: var(--transition);
}

/* Active State */
.step-item.active .step-circle {
  background: rgba(111, 66, 193, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.15);
}

.step-item.active .step-label {
  color: var(--accent);
  font-weight: 700;
}

/* Completed State */
.step-item.completed .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.step-item.completed .step-label {
  color: #10b981;
}

.step-line.completed {
  background: var(--accent);
}

/* Slot Grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.slot-btn {
  padding: 8px 4px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.slot-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(111, 66, 193, 0.1);
}

.slot-btn.selected {
  border-color: var(--accent);
  background: rgba(111, 66, 193, 0.2);
  color: #fff;
  font-weight: 600;
}

.slot-btn.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
}

/* OTP Input */
.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: #f9fafb;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  color: #1f2937;
  caret-color: var(--accent);
  transition: var(--transition);
}

.otp-input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.25);
  outline: none;
}

/* Success State */
.booking-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(32, 201, 151, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================================
   MISC UTILITIES
   ========================================================= */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: var(--card-border);
  margin: 20px 0;
}

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

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Pagination */
.pagination .page-link {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text-secondary);
  border-radius: 8px !important;
  margin: 0 2px;
  padding: 6px 12px;
  font-size: 13px;
}

.pagination .page-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--accent);
}

.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Template Gallery */
.template-card {
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--card-bg);
}

.template-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.template-card.selected {
  border-color: var(--accent);
}

.template-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.template-card-body {
  padding: 14px;
}

.template-card-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.badge-free {
  background: rgba(32, 201, 151, 0.15);
  color: #20c997;
}

.badge-premium {
  background: rgba(194, 122, 0, 0.12);
  color: var(--warning);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .topbar {
    left: 0;
    padding: 0 16px;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 40px 24px;
  }
}

/* Warning buttons high contrast overrides */
.btn-warning {
  background-color: var(--warning) !important;
  border-color: var(--warning) !important;
  color: #ffffff !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #9e6300 !important;
  border-color: #9e6300 !important;
  color: #ffffff !important;
}

.btn-outline-warning {
  color: var(--warning) !important;
  border-color: var(--warning) !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
  background-color: var(--warning) !important;
  border-color: var(--warning) !important;
  color: #ffffff !important;
}

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

.border-warning {
  border-color: var(--warning) !important;
}

/* =========================================================
   COLLAPSIBLE SIDEBAR & RESPONSIVE BACKDROP
   ========================================================= */
html.sidebar-collapsed, body.sidebar-collapsed {
  --sidebar-width: 70px;
}

body.sidebar-collapsed .sidebar-brand-name {
  display: none !important;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 14px 0;
}

body.sidebar-collapsed .sidebar-section-header {
  justify-content: center;
  padding: 16px 0 6px;
}

body.sidebar-collapsed .sidebar-section-header span,
body.sidebar-collapsed .sidebar-section-header i.bi-chevron-up,
body.sidebar-collapsed .sidebar-section-header i.bi-chevron-down {
  display: none !important;
}

body.sidebar-collapsed .sidebar-link {
  justify-content: center;
  gap: 0;
  padding: 10px 0;
}

body.sidebar-collapsed .sidebar-link span:not(.icon) {
  display: none !important;
}

body.sidebar-collapsed .sidebar-link .icon {
  margin-right: 0 !important;
}

body.sidebar-collapsed .sidebar-footer {
  padding: 12px 8px;
}

body.sidebar-collapsed .sidebar-footer .tenant-chip {
  padding: 8px;
  justify-content: center;
}

body.sidebar-collapsed .sidebar-footer .tenant-info {
  display: none !important;
}

/* Sidebar Backdrop (for Mobile Drawer) */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ── SPRINT 4.2: PREMIUM SIDEBAR MENU REDESIGN ───────────────── */
.sidebar {
  background: #110e1a !important; /* Deeper dark background */
}

/* Search Box Simulator */
.sidebar-search-container {
  padding: 10px 16px;
  margin-bottom: 12px;
}
.sidebar-search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  color: #a2a5b9;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-search-box i {
  font-size: 14px;
}
.sidebar-search-shortcut {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Accordion Header / Sections styling */
.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: #a2a5b9;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 8px;
  margin: 2px 12px;
  transition: all 0.2s ease;
}
.sidebar-section-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.sidebar-section-header.active-group {
  background: #7c3aed !important; /* Premium Purple bubble */
  color: #ffffff !important;
}
.sidebar-section-header.active-group i {
  color: #ffffff !important;
}

/* Submenu layout with Tree Lines */
.sidebar-submenu {
  margin-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.sidebar-submenu-item {
  position: relative;
  margin-bottom: 4px;
}
.sidebar-submenu-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 15px;
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.sidebar-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  color: #a2a5b9;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.sidebar-submenu-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-submenu-link.active-item {
  color: #ffffff;
  font-weight: 600;
}
.sidebar-submenu-badge {
  font-size: 10px;
  background: #3b82f6;
  color: #fff;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 600;
}

/* Promo Rocket Card at the bottom */
.sidebar-promo-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  margin: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.sidebar-promo-rocket {
  font-size: 32px;
  margin-bottom: 12px;
  animation: floatRocket 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes floatRocket {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}
.sidebar-promo-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.sidebar-promo-desc {
  font-size: 11px;
  color: #a2a5b9;
  margin-bottom: 12px;
  line-height: 1.4;
}
.sidebar-promo-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #7c3aed;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.sidebar-promo-btn:hover {
  background: #6d28d9;
  color: #ffffff;
}

/* Collapsed adjustments */
body.sidebar-collapsed .sidebar-search-container,
body.sidebar-collapsed .sidebar-promo-card {
  display: none !important;
}
body.sidebar-collapsed .sidebar-submenu {
  display: none !important;
}
body.sidebar-collapsed .sidebar-section-header {
  margin: 2px 4px;
  padding: 12px 0;
  justify-content: center;
}