/* ============================================================
   OfficeMonitor — Premium Dark Glassmorphic Design System
   ============================================================ */

/* -------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ------------------------------------------------------- */
:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #121824;
  --bg-glass: rgba(18, 24, 36, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --color-purple: #8b5cf6;
  --color-purple-glow: rgba(139, 92, 246, 0.3);
  --color-indigo: #6366f1;
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.2);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.2);
  --color-yellow: #f59e0b;
  --color-yellow-glow: rgba(245, 158, 11, 0.2);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-speed: 0.3s;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* -------------------------------------------------------
   2. LIGHT THEME OVERRIDES
   ------------------------------------------------------- */
.light-theme {
  --bg-primary: #f3f4f6;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(0, 0, 0, 0.08);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------
   3. GLOBAL RESET & BASE
   ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* -------------------------------------------------------
   4. SCROLLBAR STYLING
   ------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.45);
}

/* -------------------------------------------------------
   5. GLASSMORPHISM UTILITY
   ------------------------------------------------------- */
.glassmorphism {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

/* -------------------------------------------------------
   6. LOGIN VIEW
   ------------------------------------------------------- */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #0b0f19 0%, #1a1040 50%, #0b0f19 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.login-card {
  max-width: 480px;
  width: 100%;
  padding: 40px;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-brand i {
  font-size: 32px;
  color: var(--color-purple);
  filter: drop-shadow(0 0 8px var(--color-purple-glow));
}

.login-brand span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

.login-demo-credentials {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.demo-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.demo-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-account {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  font-family: monospace;
}

.demo-role {
  color: var(--color-purple);
  font-weight: 600;
}

.demo-email {
  color: var(--text-primary);
}

.demo-pw {
  color: var(--text-muted);
}

/* -------------------------------------------------------
   7. APP LAYOUT
   ------------------------------------------------------- */
.app-layout {
  display: grid;
  grid-template-columns: 85px 1fr;
  min-height: 100vh;
}

.app-layout.desktop-collapsed {
  grid-template-columns: 0px 1fr;
}

.app-layout.desktop-collapsed .app-sidebar {
  transform: translateX(-100%);
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 85px;
  height: 100vh;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 200;
  border-right: 1px solid var(--border-glass);
  transition: transform var(--transition-speed) ease, width var(--transition-speed) ease;
}

.app-sidebar::-webkit-scrollbar {
  width: 3px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 10px;
}

.main-wrapper-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  min-width: 0;
}

/* -------------------------------------------------------
   8. SIDEBAR
   ------------------------------------------------------- */
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 5px;
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
  gap: 6px;
}

.sidebar-brand i {
  font-size: 24px;
  color: var(--color-purple);
  filter: drop-shadow(0 0 8px var(--color-purple-glow));
}

.sidebar-brand span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: block;
  line-height: 1.2;
  text-align: center;
}

.light-theme .sidebar-brand span {
  color: #111827 !important;
}

.sidebar-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
  gap: 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--border-glass);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.user-info {
  display: none;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 0;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.menu-item-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 4px;
}

.menu-item.dropdown-toggle {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-item.dropdown-toggle .dropdown-chevron {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  transition: transform 0.2s ease;
}

.sidebar-submenu {
  position: fixed;
  left: 90px;
  min-width: 220px;
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  background: var(--bg-secondary, #121824);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 99999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sidebar-submenu.hidden {
  display: none !important;
}

.submenu-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #9ca3af);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.submenu-item:hover,
.submenu-item.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(99, 102, 241, 0.35) 100%);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.menu-item i {
  font-size: 18px;
  margin-bottom: 4px;
}

.menu-item span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.menu-item:hover {
  color: var(--color-purple);
  background: rgba(139, 92, 246, 0.05);
}

.menu-item.active {
  color: var(--color-purple);
  background: rgba(139, 92, 246, 0.08);
}

.menu-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-purple);
  box-shadow: 0 0 8px var(--color-purple);
}

.sidebar-footer {
  padding: 15px 10px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
}

.sidebar-footer button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.sidebar-footer button:hover {
  color: var(--color-red);
}

.sidebar-footer button span {
  font-size: 9px;
  font-weight: 600;
}

/* -------------------------------------------------------
   9. HEADER
   ------------------------------------------------------- */
.app-header {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 100;
}

#page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Theme Toggle Button Style */
#theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#theme-toggle-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-purple);
  border-color: var(--color-purple-glow);
}

#theme-toggle-btn svg,
#theme-toggle-btn i {
  width: 22px;
  height: 22px;
}

.icon-sun {
  display: none;
  color: #f59e0b !important;
}

.icon-moon {
  display: inline-block;
  color: #8b5cf6 !important;
}

.light-theme .icon-sun {
  display: inline-block;
}

.light-theme .icon-moon {
  display: none;
}

/* -------------------------------------------------------
   10. MOBILE MENU BUTTON
   ------------------------------------------------------- */
.mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.mobile-menu-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-purple);
  border-color: var(--color-purple-glow);
}

.mobile-menu-btn svg,
.mobile-menu-btn i {
  width: 22px;
  height: 22px;
}

/* -------------------------------------------------------
   11. CONTENT
   ------------------------------------------------------- */
.content-container {
  padding: 30px;
  flex: 1;
  min-width: 0;
}

/* -------------------------------------------------------
   12. METRICS GRID
   ------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

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

.bg-purple {
  background: var(--color-purple-glow);
  color: var(--color-purple);
  box-shadow: 0 0 20px var(--color-purple-glow);
}

.bg-red {
  background: var(--color-red-glow);
  color: var(--color-red);
  box-shadow: 0 0 20px var(--color-red-glow);
}

.bg-yellow {
  background: var(--color-yellow-glow);
  color: var(--color-yellow);
  box-shadow: 0 0 20px var(--color-yellow-glow);
}

.bg-green {
  background: var(--color-green-glow);
  color: var(--color-green);
  box-shadow: 0 0 20px var(--color-green-glow);
}

.bg-indigo {
  background: rgba(99, 102, 241, 0.18);
  color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.bg-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.bg-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.bg-cyan {
  background: rgba(6, 182, 212, 0.18);
  color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* -------------------------------------------------------
   13. CHARTS
   ------------------------------------------------------- */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.chart-box {
  padding: 24px;
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.chart-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.chart-container {
  position: relative;
  flex-grow: 1;
  min-height: 0;
  width: 100%;
}

.chart-container canvas {
  display: block;
}

/* -------------------------------------------------------
   14. TABLES
   ------------------------------------------------------- */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 13px;
  transition: background 0.2s ease;
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

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

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

.table-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 6px;
  width: max-content;
}

.table-actions .btn i {
  font-size: 12px;
  margin: 0;
}

/* -------------------------------------------------------
   15. BUTTONS
   ------------------------------------------------------- */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  text-decoration: none;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.97);
}

.btn-xs {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12.5px;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple), var(--color-indigo));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--color-purple-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-info {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.btn-info:hover {
  background: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-yellow);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
  background: rgba(245, 158, 11, 0.25);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* -------------------------------------------------------
   16. STATUS BADGES
   ------------------------------------------------------- */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.badge-role {
  background: var(--color-purple-glow);
  color: var(--color-purple);
}

.badge-approved,
.badge-confirmed,
.badge-active {
  background: var(--color-green-glow);
  color: var(--color-green);
}

.badge-pending,
.badge-waiting {
  background: var(--color-yellow-glow);
  color: var(--color-yellow);
}

.badge-rejected,
.badge-cancelled,
.badge-inactive {
  background: var(--color-red-glow);
  color: var(--color-red);
}

.badge-booked {
  background: var(--color-red-glow);
  color: var(--color-red);
}

.badge-available {
  background: var(--color-green-glow);
  color: var(--color-green);
}

.badge-male {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-female {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.badge-any {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.4);
}

/* Bootstrap-style badge aliases used throughout JS modules */
.badge-success {
  background: var(--color-green-glow);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-warning {
  background: var(--color-yellow-glow);
  color: var(--color-yellow);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-danger {
  background: var(--color-red-glow);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-primary {
  background: var(--color-purple-glow);
  color: var(--color-purple);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-secondary {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

/* -------------------------------------------------------
   17. MODALS
   ------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
}

.modal-card {
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.btn-close-modal {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 20px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------
   18. FORMS
   ------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea,
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px var(--color-purple-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-control::placeholder {
  color: var(--text-muted);
}

/* Light theme inputs */
.light-theme .form-group input:not([type="checkbox"]),
.light-theme .form-group select,
.light-theme .form-group textarea,
.light-theme .form-control {
  background: rgba(0, 0, 0, 0.04);
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-6 {
  flex: 1;
}

/* Custom Select Arrow — Dark Theme (white chevron) */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
  cursor: pointer;
}

/* Custom Select Arrow — Light Theme (dark chevron) */
.light-theme select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* Custom Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  margin-top: 10px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--border-glass);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.form-check input[type="checkbox"]:checked {
  background: var(--color-purple);
  border-color: var(--color-purple);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--color-purple-glow);
}

/* Date Input Calendar Icon visibility and cursor */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.light-theme input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0);
}

/* -------------------------------------------------------
   19. FILTER PANEL (Vacancy)
   ------------------------------------------------------- */
.filter-panel {
  padding: 24px;
  margin-bottom: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.filter-col label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.filter-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

/* -------------------------------------------------------
   20. SEATS GRID (Vacancy)
   ------------------------------------------------------- */
.seats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.seat-card {
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.seat-card:hover {
  transform: translateY(-2px);
}

.seat-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.seat-card p {
  font-size: 11px;
  color: var(--text-muted);
}

.seat-available {
  border-color: var(--color-green);
  box-shadow: 0 0 16px var(--color-green-glow);
}

.seat-available:hover {
  box-shadow: 0 0 24px var(--color-green-glow);
}

.seat-booked {
  border-color: var(--color-red);
  box-shadow: 0 0 16px var(--color-red-glow);
}

.seat-booked:hover {
  box-shadow: 0 0 24px var(--color-red-glow);
}

.seat-pending {
  border-color: var(--color-yellow);
  box-shadow: 0 0 16px var(--color-yellow-glow);
}

.seat-pending:hover {
  box-shadow: 0 0 24px var(--color-yellow-glow);
}

/* -------------------------------------------------------
   21. STATUS LEGEND
   ------------------------------------------------------- */
.status-legend {
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* -------------------------------------------------------
   22. TOAST NOTIFICATIONS
   ------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: slideIn 0.3s ease forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  box-shadow: var(--card-shadow);
  pointer-events: auto;
  max-width: 380px;
}

.toast-success {
  border-left: 4px solid var(--color-green);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-glass) 40%);
}

.toast-success i {
  color: var(--color-green);
}

.toast-error {
  border-left: 4px solid var(--color-red);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-glass) 40%);
}

.toast-error i {
  color: var(--color-red);
}

.toast-warning {
  border-left: 4px solid var(--color-yellow);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-glass) 40%);
}

.toast-warning i {
  color: var(--color-yellow);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

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

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

/* -------------------------------------------------------
   23. PERMISSION MATRIX
   ------------------------------------------------------- */
.permission-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  margin-bottom: 12px;
}

.permission-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-glass);
}

.permission-row:last-child {
  border-bottom: none;
}

.permission-row span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--color-purple);
}

.toggle-switch input:checked+.toggle-slider::before {
  background: #ffffff;
  transform: translateX(18px);
}

.toggle-switch input:focus+.toggle-slider {
  box-shadow: 0 0 0 3px var(--color-purple-glow);
}

/* -------------------------------------------------------
   24. RATES / USERS HEADER ROW
   ------------------------------------------------------- */
.rates-header-row,
.users-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.rates-header-row h3,
.users-header-row h3 {
  font-size: 18px;
  font-weight: 700;
}

/* -------------------------------------------------------
   25. NOTE TEXT
   ------------------------------------------------------- */
.form-text {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-top: 4px;
}

/* -------------------------------------------------------
   26. MOBILE OVERLAY
   ------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

/* -------------------------------------------------------
   27. RESPONSIVE — TABLET (max-width: 1024px)
   ------------------------------------------------------- */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    transform: translateX(-100%);
    position: fixed;
    width: 260px;
    z-index: 200;
  }

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

  .main-wrapper-content {
    grid-column: 1;
  }



  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-sidebar.open .menu-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 20px;
    gap: 12px;
    text-align: left;
  }

  .app-sidebar.open .menu-item span {
    font-size: 13px;
  }

  .app-sidebar.open .sidebar-brand {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    padding: 20px;
  }

  .app-sidebar.open .sidebar-user {
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    text-align: left;
  }

  .app-sidebar.open .user-info {
    display: flex;
    flex-direction: column;
  }

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

  .user-role {
    font-size: 11px;
    color: var(--text-muted);
  }
}

/* -------------------------------------------------------
   28. RESPONSIVE — MOBILE (max-width: 640px)
   ------------------------------------------------------- */
@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .content-container {
    padding: 16px;
  }

  .app-header {
    padding: 16px;
  }

  #page-title {
    font-size: 18px;
  }

  .modal-card {
    padding: 20px;
  }

  .login-card {
    padding: 24px;
  }

  .status-legend {
    flex-direction: column;
    gap: 10px;
  }

  .rates-header-row,
  .users-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .payment-methods-selector {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .media-grid {
    grid-template-columns: 1fr !important;
  }

  .slip-details-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

/* -----------------------------------------------------------------------
   29. JS TOOLTIP SYSTEM STYLES — Premium Glassmorphism
   ----------------------------------------------------------------------- */
.custom-js-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;

  /* Glass base */
  background: linear-gradient(135deg,
      rgba(25, 30, 50, 0.92) 0%,
      rgba(18, 22, 40, 0.96) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  /* Premium border with gradient shimmer */
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Typography */
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;

  /* Shape */
  padding: 7px 13px;
  border-radius: 8px;

  /* Animation — scale-up + fade */
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition:
    opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible state (toggled via JS) */
.custom-js-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Arrow pointer (default top) */
.custom-js-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
}

.custom-js-tooltip[data-position="top"]::after,
.custom-js-tooltip:not([data-position])::after {
  top: 100%;
  border-top-color: rgba(139, 92, 246, 0.6);
}

.custom-js-tooltip[data-position="bottom"]::after {
  bottom: 100%;
  border-bottom-color: rgba(139, 92, 246, 0.6);
}

/* Subtle purple top-edge accent line */
.custom-js-tooltip::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 60%);
  pointer-events: none;
}

/* ── Light theme override ── */
.light-theme .custom-js-tooltip {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(248, 246, 255, 0.97) 100%);
  color: #1e1b3a;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(139, 92, 246, 0.1);
}

.light-theme .custom-js-tooltip[data-position="top"]::after,
.light-theme .custom-js-tooltip:not([data-position])::after {
  border-top-color: rgba(139, 92, 246, 0.3);
}

.light-theme .custom-js-tooltip[data-position="bottom"]::after {
  border-bottom-color: rgba(139, 92, 246, 0.3);
}

.light-theme .custom-js-tooltip::before {
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.06) 0%,
      transparent 60%);
}


/* -------------------------------------------------------
   30. ADDITIONAL MODERN & USER-FRIENDLY STYLE UPGRADES
   ------------------------------------------------------- */

/* Search Inputs & Containers */
.search-box-container {
  position: relative;
  max-width: 360px;
  width: 100%;
}

.search-box-container .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box-container .search-input {
  padding-left: 40px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-size: 13px;
  height: 42px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box-container .search-input:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px var(--color-purple-glow), 0 4px 20px rgba(139, 92, 246, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.light-theme .search-box-container .search-input {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .search-box-container .search-input:focus {
  background: rgba(255, 255, 255, 0.9);
}

/* Premium Login Layout */
.login-wrapper {
  background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Floating Blur Spheres */
.login-bg-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.sphere-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-purple-glow) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation: floatSphere 12s ease-in-out infinite alternate;
}

.sphere-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation: floatSphere 16s ease-in-out infinite alternate-reverse;
}

.sphere-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatSphere 20s ease-in-out infinite alternate;
}

@keyframes floatSphere {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -60px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 40px) scale(0.9);
  }
}

/* Form Icon Wrapper */
.form-icon-wrapper {
  position: relative;
  width: 100%;
}

.form-icon-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-icon-wrapper input {
  padding-left: 38px !important;
}

/* Checkbox Alignment Fixes */
.form-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
  margin-top: 12px;
}

.form-check-input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
}

.form-check-label {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  user-select: none;
}

/* Demo Credentials Accordion */
.demo-details {
  margin-top: 24px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  text-align: left;
}

.demo-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-purple);
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  transition: all 0.2s ease;
  width: fit-content;
}

.demo-summary:hover {
  background: rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

.demo-summary::-webkit-details-marker {
  display: none;
}

.demo-summary span {
  text-decoration: none;
}

.demo-accounts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.demo-account {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  gap: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.demo-account:hover {
  transform: translateY(-2px);
  border-color: var(--color-purple);
  background: rgba(139, 92, 246, 0.1);
}

.light-theme .demo-account {
  background: rgba(0, 0, 0, 0.03);
}

.light-theme .demo-account:hover {
  background: rgba(139, 92, 246, 0.05);
}

.demo-role {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-purple);
}

.demo-email {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.demo-pw {
  font-size: 11px;
  color: var(--text-muted);
}

.login-card {
  max-width: 450px;
  width: 100%;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), var(--card-shadow);
  z-index: 10;
  background: rgba(18, 24, 36, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  position: relative;
  overflow: hidden;
}

/* Light Theme Login Card Override */
.light-theme .login-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08), var(--card-shadow);
}

/* Improved Tables Hover state */
.data-table tr:hover td {
  background: rgba(139, 92, 246, 0.08) !important;
  color: var(--text-primary);
}

/* Hover scales on cards */
.metric-card {
  border: 1px solid var(--border-glass);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15), var(--card-shadow);
}

/* Sidebar upgrades */
.menu-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 10px;
  margin: 4px 10px;
}

.menu-item:hover {
  transform: translateX(3px);
  background: rgba(139, 92, 246, 0.08);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.menu-item.active::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  bottom: 20%;
  width: 4px;
  background: var(--color-purple);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--color-purple);
}

/* Buttons Hover Pulse */
.btn-primary {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

/* -------------------------------------------------------
   31. USER PROFILE DROPDOWN
   ------------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 5px 12px 5px 6px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.profile-dropdown-btn:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple) 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.profile-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.profile-dropdown-btn:focus .profile-chevron,
.profile-dropdown.open .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: rgba(18, 24, 36, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 8px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.light-theme .profile-dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-menu-header {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.profile-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-menu-role {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.profile-menu-divider {
  border: 0;
  border-top: 1px solid var(--border-glass);
  margin: 6px 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-menu-item:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--color-purple);
}

.profile-menu-item i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.profile-menu-item:hover i {
  color: var(--color-purple);
}

.profile-menu-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-red);
}

.profile-menu-item.logout-item:hover i {
  color: var(--color-red);
}

/* ======================== WATERMARK STYLES ======================== */
.app-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -100;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 40%;
  opacity: var(--watermark-opacity, 0.15);
  background-image: var(--watermark-image, none);
  transition: opacity 0.3s ease;
}

/* ======================== SETTINGS VIEW ======================== */
.settings-container {
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.settings-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 25px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.settings-section-title i {
  color: var(--color-purple);
  width: 20px;
  height: 20px;
}

.settings-section-title:first-of-type {
  margin-top: 0;
}

.settings-form textarea {
  resize: vertical;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.upload-preview {
  width: 100%;
  height: 140px;
  border: 2px dashed var(--border-glass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.upload-preview:hover {
  border-color: var(--color-purple);
  background: rgba(139, 92, 246, 0.05);
}

.upload-preview img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 6px;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.upload-placeholder i {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.file-input {
  display: none;
}

.range-group {
  margin: 25px 0;
}

.range-slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: var(--border-glass);
  outline: none;
  margin: 10px 0;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-purple);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ======================== SECURE PAYMENT GATEWAY ======================== */
.payment-modal-card {
  max-width: 500px !important;
}

.payment-booking-recap {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.recap-row:last-of-type {
  margin-bottom: 0;
}

.recap-row.total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.recap-row.total-row .recap-value {
  color: var(--color-green);
}

.payment-methods-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.pm-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pm-tab i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.pm-tab span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.pm-tab:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.pm-tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-color: var(--color-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.pm-tab.active i {
  color: var(--color-purple);
}

.pm-tab.active span {
  color: var(--text-primary);
}

/* Credit Card Mockup */
.credit-card-mockup {
  height: 160px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.credit-card-mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #ffd700 0%, #cca300 100%);
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.card-number-display {
  font-family: monospace;
  font-size: 20px;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 15px 0;
}

.card-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-holder-display {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 75%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-expiry-display {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* UPI QR Layout */
.upi-qr-container {
  display: flex;
  gap: 15px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 15px;
}

.upi-qr-placeholder {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.upi-qr-placeholder i.qr-icon {
  width: 64px;
  height: 64px;
  color: #111;
}

.qr-desc {
  font-size: 9px;
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  color: #666;
}

.upi-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upi-instructions {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Cash styling */
.cash-container {
  text-align: center;
  padding: 20px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
}

.cash-info-icon {
  width: 48px;
  height: 48px;
  color: var(--color-green);
  margin-bottom: 12px;
}

.cash-instructions {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.cash-amount-label {
  color: var(--color-green);
  font-size: 16px;
}

/* ======================== PRINTABLE SLIP — PREMIUM A4 REDESIGN ======================== */

/* Modal wrapper — transparent so the A4 paper floats on the dark overlay */
.slip-modal-card {
  max-width: 880px !important;
  width: 96% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 30px auto !important;
}

/* A4 Paper on screen — exact 210mm × 297mm sheet appearance */
.printable-slip-container.a4-paper-preview {
  width: 210mm;
  min-height: 297mm;
  padding: 0;
  margin: 0 auto;
  background: #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  position: relative;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 860px) {
  .printable-slip-container.a4-paper-preview {
    width: 100% !important;
    min-height: auto !important;
  }
}

/* ── TOP ACCENT STRIPE ── */
.slip-accent-bar {
  height: 6px;
  background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  flex-shrink: 0;
}

/* ── DOCUMENT BODY (padded area below accent) ── */
.slip-body {
  padding: 5mm;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Watermark */
.slip-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 38%;
  opacity: 0.06;
}

/* ── HEADER ROW ── */
.slip-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5mm;
  position: relative;
  z-index: 1;
}

.slip-brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slip-logo {
  max-height: 52px;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 8px;
  display: block;
}

.slip-brand-name {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a !important;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.slip-brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #3b82f6 !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0;
}

.slip-doc-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.slip-doc-type {
  font-size: 30px;
  font-weight: 900;
  color: #0f172a !important;
  margin: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1;
}

.slip-doc-number {
  font-size: 13px;
  color: #64748b !important;
  font-weight: 600;
  margin: 0;
}

/* Status badges inside A4 */
.a4-paper-preview .badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1.5px solid transparent;
}

.a4-paper-preview .badge-success {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

.a4-paper-preview .badge-warning {
  background: #fef9c3 !important;
  color: #a16207 !important;
  border-color: #fde047 !important;
}

.a4-paper-preview .badge-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

.a4-paper-preview .badge-info {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #7dd3fc !important;
}

.a4-paper-preview .badge-purple {
  background: #f3e8ff !important;
  color: #7e22ce !important;
  border-color: #d8b4fe !important;
}

/* ── SEPARATOR LINE ── */
.slip-separator {
  border: none;
  border-top: 1.5px solid #e2e8f0;
  margin: 0 0 5mm;
  position: relative;
  z-index: 1;
}

.slip-separator.dashed {
  border-top-style: dashed;
  border-color: #cbd5e1;
}

/* ── BILLING / ADDRESS GRID ── */
.slip-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 5mm;
  position: relative;
  z-index: 1;
}

.slip-billing-cell {
  padding: 5mm 6mm;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.slip-billing-cell:first-child {
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.slip-billing-cell:last-child {
  border-radius: 0 4px 4px 0;
}

.slip-billing-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3b82f6 !important;
  margin: 0 0 5px;
  display: block;
}

.slip-billing-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 2px;
}

.slip-billing-detail {
  font-size: 12px;
  color: #475569 !important;
  margin: 0 0 2px;
  line-height: 1.5;
}

/* ── META CHIPS ROW ── */
.slip-meta-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5mm;
  position: relative;
  z-index: 1;
}

.slip-meta-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 12px;
  min-width: 90px;
}

.slip-meta-chip-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b !important;
}

.slip-meta-chip-value {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a !important;
}

/* ── LINE ITEMS TABLE ── */
.slip-line-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 5mm;
  position: relative;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.slip-line-table thead tr {
  background: #1e293b;
}

.slip-line-table th {
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8 !important;
  text-align: left;
  border: none;
}

.slip-line-table th.right {
  text-align: right;
}

.slip-line-table th.center {
  text-align: center;
}

.slip-line-table td {
  padding: 5px;
  font-size: 13px;
  color: #334155 !important;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.slip-line-table td.right {
  text-align: right;
  font-weight: 700;
  color: #0f172a !important;
}

.slip-line-table td.center {
  text-align: center;
}

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

.slip-line-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.slip-line-title {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a !important;
  display: block;
  margin-bottom: 2px;
}

.slip-line-desc {
  font-size: 11px;
  color: #64748b !important;
  display: block;
  line-height: 1.4;
}

/* ── TOTALS + NOTES SECTION ── */
.slip-bottom-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  margin-bottom: 5mm;
  position: relative;
  z-index: 1;
}

.slip-notes-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slip-notes-title {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3b82f6 !important;
  margin: 0 0 4px;
}

.slip-notes-text {
  font-size: 11px;
  color: #64748b !important;
  line-height: 1.6;
  margin: 0;
}

/* Totals Box */
.slip-totals-box {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.slip-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 13px;
  font-size: 12px;
  color: #475569 !important;
  border-bottom: 1px solid #f1f5f9;
}

.slip-totals-row:last-child {
  border-bottom: none;
}

.slip-totals-row.grand {
  background: #1e293b;
  padding: 11px 13px;
  border-bottom: none;
}

.slip-totals-row.grand span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slip-totals-row.grand span:last-child {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff !important;
}

.slip-totals-row .credit {
  color: #16a34a !important;
}

.slip-totals-row .debit {
  color: #dc2626 !important;
}

/* ── TRANSACTION HISTORY TABLE ── */
.slip-txn-section {
  margin-bottom: 8mm;
  position: relative;
  z-index: 1;
}

.slip-txn-title {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3b82f6 !important;
  margin-bottom: 6px;
  display: block;
}

.slip-txn-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  font-size: 11px;
}

.slip-txn-table th {
  background: #f1f5f9;
  color: #475569 !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.slip-txn-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155 !important;
  vertical-align: top;
}

.slip-txn-table tr:last-child td {
  border-bottom: none;
}

.slip-txn-table tr:nth-child(even) td {
  background: #fafbfc;
}

/* ── FOOTER STRIP ── */
.slip-footer-strip {
  padding-top: 6mm;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.slip-barcode-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.slip-barcode-lines {
  height: 30px;
  width: 130px;
  background: repeating-linear-gradient(90deg,
      #1e293b, #1e293b 2px,
      transparent 2px, transparent 5px,
      #1e293b 5px, #1e293b 6px,
      transparent 6px, transparent 9px);
}

.slip-barcode-text {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  color: #64748b !important;
  letter-spacing: 1px;
}

.slip-footer-note {
  text-align: right;
  font-size: 11px;
  color: #94a3b8 !important;
  font-style: italic;
  max-width: 55%;
  line-height: 1.4;
}

.slip-footer-brand {
  font-size: 10px;
  font-weight: 800;
  color: #3b82f6 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

/* ── TRANSACTION DETAIL GRID (payment slip) ── */
.slip-txn-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8mm;
  position: relative;
  z-index: 1;
}

.slip-txn-detail-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
}

.slip-txn-detail-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b !important;
  display: block;
  margin-bottom: 3px;
}

.slip-txn-detail-value {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a !important;
  display: block;
}

/* ── PRINT OVERRIDES ── */
@page {
  size: A4;
  margin: 2mm;
}

@media print {

  html,
  body {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .no-print,
  .app-sidebar,
  .app-header,
  .sidebar-footer,
  .slip-actions-header,
  #toast-container,
  #impersonation-banner,
  #theme-toggle-btn,
  .profile-dropdown,
  .modal-overlay.hidden,
  .modal-header.no-print,
  .modal-footer.no-print,
  .btn-close-modal,
  .btn-close-template-modal,
  .btn-close-currency-modal {
    display: none !important;
  }

  /* Hide background app layout ONLY when a modal is open */
  body:has(.modal-overlay:not(.hidden)) #app-container,
  body.modal-open #app-container {
    display: none !important;
  }

  #app-container,
  .main-wrapper-content,
  .content-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .modal-overlay:not(.hidden) {
    position: static !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    z-index: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .modal-card,
  .slip-modal-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: block !important;
  }

  .printable-slip-container,
  .printable-slip-container.a4-paper-preview {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: block !important;
  }

  .slip-body {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .slip-header-row,
  .slip-billing-grid,
  .slip-meta-chips,
  .slip-line-table,
  .slip-bottom-section,
  .slip-txn-section,
  .slip-footer-strip {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  .slip-accent-bar {
    background: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-line-table thead tr {
    background: #1e293b !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-totals-row.grand {
    background: #1e293b !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .a4-paper-preview .badge {
    border-width: 1.5px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-watermark {
    opacity: 0.08 !important;
    z-index: 0 !important;
  }
}

/* A4 Paper Styling on Screen */
.printable-slip-container.a4-paper-preview {
  width: 210mm;
  min-height: 297mm;
  padding: 0;
  margin: 0 auto;
  background: #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

@media screen and (max-width: 840px) {
  .printable-slip-container.a4-paper-preview {
    width: 100% !important;
    min-height: auto !important;
    padding: 20px !important;
  }
}

/* Watermark Background */
.slip-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 40%;
  opacity: 0.12;
}

/* Header Sections */
.slip-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 35px;
  position: relative;
  z-index: 10;
}

.slip-company-details {
  flex: 1;
}

.slip-logo {
  max-height: 55px;
  max-width: 130px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

.slip-company-name {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.slip-company-address {
  font-size: 13px;
  color: #475569 !important;
  line-height: 1.4;
  margin: 0;
}

.slip-document-title {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.slip-title-text {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a !important;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Custom Overrides for Badges in A4 preview */
.a4-paper-preview .badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.a4-paper-preview .badge-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #10b981 !important;
}

.a4-paper-preview .badge-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border-color: #f59e0b !important;
}

.a4-paper-preview .badge-purple {
  background-color: #f3e8ff !important;
  color: #6b21a8 !important;
  border-color: #8b5cf6 !important;
}

/* Info Grid (Details / Metadatas) */
.slip-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 35px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 10;
}

.slip-info-column h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b !important;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.slip-info-column p {
  font-size: 13px;
  color: #334155 !important;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.slip-info-column p:last-child {
  margin-bottom: 0;
}

.slip-info-column .slip-value-highlight {
  font-weight: 700;
  color: #0f172a !important;
}

.slip-info-column .slip-label {
  color: #64748b;
}

/* Structured Items Table */
.slip-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 35px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.slip-items-table th {
  background: #0f172a;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 15px;
  text-align: left;
  border: none;
}

.slip-items-table td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  color: #334155 !important;
  vertical-align: top;
}

.slip-items-table tr:last-child td {
  border-bottom: none;
}

.slip-item-title {
  font-weight: 700;
  color: #0f172a !important;
  font-size: 14px;
}

.slip-item-meta {
  font-size: 11px;
  color: #64748b !important;
  margin-top: 5px;
  line-height: 1.4;
}

/* Summary Grid Section */
.slip-summary-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 35px;
  position: relative;
  z-index: 10;
}

@media screen and (max-width: 600px) {
  .slip-summary-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.slip-notes-col {
  font-size: 12px;
  color: #64748b !important;
  line-height: 1.5;
}

.slip-totals-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slip-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569 !important;
}

.slip-total-row.grand-total {
  border-top: 2px solid #e2e8f0;
  padding-top: 10px;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a !important;
}

/* Transaction Details Table */
.slip-transactions-section {
  margin-bottom: 35px;
  position: relative;
  z-index: 10;
}

.slip-transactions-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569 !important;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.slip-transactions-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  border-radius: 4px;
  overflow: hidden;
}

.slip-transactions-table th {
  background: #f1f5f9;
  color: #475569 !important;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.slip-transactions-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155 !important;
  vertical-align: top;
}

.slip-transactions-table tr:last-child td {
  border-bottom: none;
}

/* Barcode */
.slip-barcode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 15px;
}

.barcode-lines {
  height: 32px;
  width: 140px;
  background: repeating-linear-gradient(90deg, #0f172a, #0f172a 2px, transparent 2px, transparent 4px);
}

.barcode-text {
  font-family: monospace;
  font-size: 10px;
  color: #64748b !important;
  margin-top: 4px;
}

/* Footer note */
.slip-footer-section {
  border-top: 1px dashed #e2e8f0;
  padding-top: 25px;
  text-align: center;
  font-size: 12px;
  color: #64748b !important;
  font-style: italic;
  position: relative;
  z-index: 10;
}

/* ======================== MEDIA PRINT OVERRIDES ======================== */
/* Print overrides are defined above in PRINT OVERRIDES section */

/* ======================== STANDALONE CHECKOUT PAGE ======================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.checkout-back-link a {
  transition: transform 0.2s ease;
}

.checkout-back-link a:hover {
  transform: translateX(-4px);
}

/* Settings Toggle Cards */
.settings-payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 20px 0;
}

.toggle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.toggle-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.toggle-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-card-info strong {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 700;
}

.toggle-card-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Gateway Configuration Grid & Cards */
.gateway-configs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gateway-config-card {
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  overflow: hidden;
}

.gateway-config-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gateway-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-glass);
}

.gateway-card-header strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.gateway-card-body {
  padding: 20px;
  transition: all 0.3s ease;
}

/* Disabled state when a gateway is disabled */
.gateway-config-card.disabled {
  opacity: 0.5;
}

.gateway-config-card.disabled .gateway-card-body {
  pointer-events: none;
  filter: blur(0.5px) grayscale(50%);
}

/* ======================== REPORTS COLLAPSIBLE SUBMENU & HOVER EXPANSION ======================== */

/* Collapsible Dropdown chevron transition */
.dropdown-chevron {
  transition: transform 0.3s ease;
}

.menu-item-dropdown.open .dropdown-chevron,
.menu-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

/* Submenu layout styles */
.sidebar-submenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.sidebar-submenu.hidden {
  display: none !important;
}

.menu-item-dropdown:hover .sidebar-submenu.hidden {
  display: flex !important;
}

/* Highlight parent menu item when dropdown or its submenu is hovered */
.menu-item-dropdown:hover .menu-item.dropdown-toggle {
  background: rgba(139, 92, 246, 0.08) !important;
  color: var(--color-purple) !important;
  transform: translateX(3px);
}

.menu-item-dropdown:hover .menu-item.dropdown-toggle i {
  color: var(--color-purple) !important;
}

/* Submenu items styling and hover state */
.submenu-item {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent;
}

.submenu-item:hover {
  color: var(--color-purple) !important;
  background: rgba(139, 92, 246, 0.05) !important;
  transform: translateX(3px);
}

.submenu-item.active {
  color: var(--color-purple) !important;
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
  font-weight: 600;
}

/* Desktop Sidebar Hover Expansion */
@media (min-width: 1025px) {

  /* Sidebar remains fixed at narrow width and allows vertical scrolling */
  .app-sidebar {
    width: 85px !important;
    overflow-y: auto !important;
  }

  .app-sidebar:hover {
    width: 85px !important;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2) !important;
    overflow-y: auto !important;
  }

  /* Ensure brand, menu items, and footer remain stacked vertically */
  .app-sidebar:hover .menu-item,
  .app-sidebar:hover .sidebar-brand,
  .app-sidebar:hover .sidebar-footer button {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .app-sidebar:hover .menu-item span,
  .app-sidebar:hover .sidebar-brand span,
  .app-sidebar:hover .sidebar-footer button span {
    font-size: 9px !important;
    display: block !important;
  }



  .app-sidebar:hover .sidebar-footer button {
    width: auto !important;
    padding: 8px !important;
  }

  /* Make dropdown container relative to position the flyout */
  .menu-item-dropdown {
    position: relative !important;
  }

  /* Hide dropdown chevrons permanently on desktop narrow sidebar */
  .dropdown-chevron {
    display: none !important;
  }

  .app-sidebar:hover .dropdown-chevron {
    display: none !important;
  }

  /* Submenu tooltip/flyout styling - using position fixed to escape overflow-y container clipping */
  .sidebar-submenu {
    position: fixed !important;
    left: 80px !important;
    top: 0;
    /* vertical coordinate set dynamically by JS on desktop hover */
    width: 220px !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    flex-direction: column !important;
    gap: 4px !important;
    z-index: 350 !important;
    text-align: left !important;
    margin-top: 0 !important;
    /* vertical positioning handled dynamically via JS */
    padding-left: 8px !important;
    /* override default inline padding */
  }

  /* Show flyout on hover of dropdown container */
  .menu-item-dropdown:hover .sidebar-submenu,
  .menu-item-dropdown:hover .sidebar-submenu.hidden {
    display: flex !important;
  }
}

/* ============================================================
   14. IMPERSONATION WARNING BANNER
   ============================================================ */
.impersonation-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(139, 92, 246, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10000;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.impersonation-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.impersonation-banner .banner-content i,
.impersonation-banner .banner-content svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.has-banner {
  padding-top: 40px;
}

body.has-banner .app-sidebar {
  top: 40px !important;
  height: calc(100vh - 40px) !important;
}

/* Table Pagination Controls */
.table-pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--color-slate-400);
}

.table-pagination-controls .pagination-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.table-pagination-controls .btn-pag {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-slate-200);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  min-width: 32px;
  text-align: center;
}

.table-pagination-controls .btn-pag:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.table-pagination-controls .btn-pag.active {
  background: var(--color-primary, #6366f1);
  border-color: var(--color-primary, #6366f1);
  color: #ffffff;
  font-weight: 600;
}

.table-pagination-controls .btn-pag:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.table-pagination-controls .pagination-ellipsis {
  padding: 0 4px;
  color: var(--color-slate-500);
}

/* ============================================================
   15. RESPONSIVE PRINTABLE SLIPS (MOBILE & SMALL SCREENS)
   ============================================================ */

/* Viewports <= 768px (Tablets and Mobile) */
@media screen and (max-width: 768px) {
  .printable-slip-container.a4-paper-preview {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    /* Ensure accent stripe runs edge-to-edge */
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  }

  .slip-body {
    padding: 20px 15px 20px !important;
    /* Balanced mobile padding */
  }

  /* Make tables responsive by allowing horizontal scroll inside their own block */
  .slip-line-table,
  .slip-txn-table,
  .slip-transactions-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Retain normal layout inside scrollable table */
  .slip-line-table th,
  .slip-line-table td,
  .slip-txn-table th,
  .slip-txn-table td,
  .slip-transactions-table th,
  .slip-transactions-table td {
    white-space: nowrap !important;
    /* Prevent text wrap inside cells for scrolling layout */
  }

  .slip-line-desc {
    white-space: normal !important;
    /* Allow description to wrap if needed */
  }

  .slip-bottom-section {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
  }

  .slip-notes-block {
    max-width: 100% !important;
  }
}

/* Viewports <= 600px (Mobile portrait) */
@media screen and (max-width: 600px) {
  .slip-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
  }

  .slip-brand-block {
    align-items: flex-start !important;
  }

  .slip-doc-meta {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .slip-billing-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .slip-billing-cell {
    padding: 12px 15px !important;
    text-align: left !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
  }

  .slip-billing-cell:first-child,
  .slip-billing-cell:last-child {
    border-radius: 4px !important;
  }

  .slip-txn-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  .slip-txn-detail-cell {
    padding: 10px 12px !important;
  }

  .slip-meta-chips {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  .slip-meta-chip {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 110px !important;
    padding: 6px 10px !important;
  }

  .slip-footer-strip {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    text-align: center !important;
    padding-top: 15px !important;
  }

  .slip-barcode-block {
    align-items: center !important;
  }

  .slip-footer-note {
    max-width: 100% !important;
    text-align: center !important;
  }
}

/* Viewports <= 480px (Extra small mobile) */
@media screen and (max-width: 480px) {
  .slip-brand-name {
    font-size: 18px !important;
  }

  .slip-doc-type {
    font-size: 24px !important;
  }

  .slip-meta-chip {
    flex: 1 1 100% !important;
    /* Stack chips on very narrow screens */
  }

  .slip-line-table td {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .slip-line-title {
    font-size: 12px !important;
  }

  .slip-line-desc {
    font-size: 10px !important;
  }

  .slip-totals-row {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .slip-totals-row.grand span:last-child {
    font-size: 15px !important;
  }

  .slip-modal-card {
    margin: 10px auto !important;
    width: 98% !important;
  }
}

/* =========================================================================
   SELECT2 DARK & LIGHT PREMIUM THEME OVERRIDES
   ========================================================================= */
.select2-container--default .select2-selection--single {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 6px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  color: var(--text-primary) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary) !important;
  font-size: 13px !important;
  padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important;
  right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--text-secondary) transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--text-secondary) transparent !important;
}

.select2-dropdown {
  background: #1e293b !important;
  border: 1px solid rgba(147, 51, 234, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3) !important;
  z-index: 99999 !important;
}

.select2-container--default .select2-search--dropdown {
  display: block !important;
  padding: 8px !important;
  background: #0f172a !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  display: block !important;
  width: 100% !important;
  height: 36px !important;
  padding: 6px 12px !important;
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.select2-container--default .select2-results__option {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  background-color: #1e293b !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #9333ea !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(139, 92, 246, 0.15) !important;
  color: #d8b4fe !important;
}

.select2-container {
  width: 100% !important;
}

.light-theme .select2-container--default .select2-selection--single {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.light-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #111827 !important;
}

.light-theme .select2-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.light-theme .select2-container--default .select2-search--dropdown {
  background: #ffffff !important;
}

.light-theme .select2-container--default .select2-search--dropdown .select2-search__field {
  background: #f9fafb !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #111827 !important;
}

.light-theme .select2-container--default .select2-results__option {
  color: #111827 !important;
  background-color: #ffffff !important;
}

.light-theme .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #f3e8ff !important;
  color: #6b21a8 !important;
}

.light-theme .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--color-purple) !important;
  color: #ffffff !important;
}

.light-theme .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--color-purple) !important;
  color: #ffffff !important;
}

/* ── Select2 in form-group context (settings, reports, roles) ─────── */
.form-group .select2-container {
  width: 100% !important;
}

.form-group .select2-container--default .select2-selection--single {
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
}

.form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
}

/* Focused state ring */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--color-purple) !important;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.15) !important;
}

/* Fix z-index when inside modals */
.modal .select2-container {
  z-index: auto;
}

.modal-card .select2-dropdown {
  z-index: 99999 !important;
}

/* Report filter selects */
.filter-bar .select2-container {
  min-width: 140px;
}

.filter-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.filter-col label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* =========================================================================
   SELECT2 MULTISELECT STYLES (REPORTS & FILTERS)
   ========================================================================= */
.select2-container--default .select2-selection--multiple {
  background: var(--bg-secondary, rgba(18, 24, 36, 0.8)) !important;
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 8px !important;
  min-height: 38px !important;
  max-height: 76px !important;
  overflow-y: auto !important;
  color: var(--text-primary, #f8fafc) !important;
  padding: 3px 6px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar {
  width: 4px !important;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4) !important;
  border-radius: 4px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--color-purple, #8b5cf6) !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  padding: 2px 4px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Individual tag pills */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: rgba(139, 92, 246, 0.25) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  color: #e9d5ff !important;
  border-radius: 6px !important;
  padding: 3px 8px 3px 22px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  position: relative !important;
  margin: 2px 0 !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Remove 'x' button inside pills */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #f472b6 !important;
  border: none !important;
  background: transparent !important;
  position: absolute !important;
  left: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #ef4444 !important;
}

/* Clear all 'x' button on right */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  color: var(--text-muted, #94a3b8) !important;
  margin-right: 6px !important;
  font-size: 16px !important;
  float: right !important;
  cursor: pointer !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
  color: #ef4444 !important;
}

/* Multiselect inline search field */
.select2-container--default .select2-selection--multiple .select2-search--inline {
  display: inline-block !important;
  flex: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary, #f8fafc) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  padding: 2px 4px !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Results dropdown styling */
.select2-dropdown {
  background: #121824 !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  z-index: 999999 !important;
  overflow: hidden !important;
}

.select2-container--default .select2-results__options {
  max-height: 220px !important;
  overflow-y: auto !important;
  padding: 4px !important;
}

.select2-container--default .select2-results__option {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
  border-radius: 6px !important;
  margin-bottom: 2px !important;
  background-color: transparent !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(139, 92, 246, 0.15) !important;
  color: #d8b4fe !important;
}

/* Light Theme Multiselect Overrides */
body.light-theme .select2-container--default .select2-selection--multiple {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #111827 !important;
}

body.light-theme .select2-container--default .select2-selection--multiple::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3) !important;
}

body.light-theme .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #f3e8ff !important;
  border-color: #d8b4fe !important;
  color: #6b21a8 !important;
}

body.light-theme .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  color: #111827 !important;
}

body.light-theme .select2-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .select2-container--default .select2-results__option {
  color: #374151 !important;
}

body.light-theme .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--color-purple, #8b5cf6) !important;
  color: #ffffff !important;
}

body.light-theme .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #f3e8ff !important;
  color: #6b21a8 !important;
}

/* Responsive Header & Subnav Styles */
@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.report-subnav-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.report-subnav-container::-webkit-scrollbar {
  height: 4px;
}

.report-subnav-container::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

/* Filter Panel & Select2 Alignment Improvements */
.filter-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.filter-panel label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.filter-panel input.form-control,
.filter-panel select.form-control {
  height: 38px !important;
  box-sizing: border-box !important;
}

.filter-panel .select2-container--default .select2-selection--multiple {
  min-height: 38px !important;
  max-height: 76px !important;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 10px !important;
  padding: 2px 6px !important;
}

.light-theme .filter-panel .select2-container--default .select2-selection--multiple {
  background: rgba(0, 0, 0, 0.04) !important;
}

/* Date & Time Picker Field Interactivity & Icon Visibility */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.85) sepia(1) saturate(5) hue-rotate(220deg);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  padding: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(0.95) sepia(1) saturate(6) hue-rotate(220deg) drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
  transform: scale(1.1);
}

.light-theme input[type="date"]::-webkit-calendar-picker-indicator,
.light-theme input[type="time"]::-webkit-calendar-picker-indicator,
.light-theme input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.25) sepia(1) saturate(5) hue-rotate(220deg);
  opacity: 0.8;
}

.filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 3px !important;
  padding: 1px 8px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}

/* =======================================================================
   PREMIUM SELECT & SELECT2 DROPDOWN OPTIONS LIST STYLES
   ======================================================================= */

/* Native <option> styling fallback */
select.form-control option,
select option {
  background-color: #121828 !important;
  color: #e2e8f0 !important;
  padding: 10px 14px !important;
}

.light-theme select.form-control option,
.light-theme select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Select2 Dropdown Popup Panel (Options List) */
.select2-dropdown {
  background: rgba(18, 24, 40, 0.96) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(139, 92, 246, 0.2) !important;
  overflow: hidden !important;
  z-index: 99999 !important;
  margin-top: 4px !important;
  padding: 6px !important;
}

/* Light theme dropdown panel override */
.light-theme .select2-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(139, 92, 246, 0.08) !important;
}

/* Search input inside Select2 Dropdown */
.select2-search--dropdown {
  padding: 6px !important;
}

.select2-search--dropdown .select2-search__field {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 8px !important;
  color: var(--text-primary, #f8fafc) !important;
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  outline: none !important;
}

.light-theme .select2-search--dropdown .select2-search__field {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3) !important;
}

/* Options List Container */
.select2-results__options {
  max-height: 240px !important;
  padding: 2px !important;
}

/* Individual Option Item */
.select2-container--default .select2-results__option {
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  border-radius: 8px !important;
  margin-bottom: 2px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

.light-theme .select2-container--default .select2-results__option {
  color: #334155 !important;
}

/* Highlighted / Hovered Option Item */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--selectable:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* Selected Option Item */
.select2-container--default .select2-results__option[aria-selected="true"] {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #a5b4fc !important;
  font-weight: 600 !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.light-theme .select2-container--default .select2-results__option[aria-selected="true"] {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #6366f1 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(99, 102, 241, 0.95) 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

/* Optgroup Header */
.select2-container--default .select2-results__group {
  padding: 8px 12px 4px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #8b5cf6 !important;
}

/* =======================================================================
   LIGHT THEME VIBRANT FORMS & MODALS (HIGH CONTRAST & CRISP STYLING)
   ======================================================================= */
.light-theme .modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

.light-theme .modal-header h3,
.light-theme .modal-header h4,
.light-theme .modal-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.light-theme .btn-close-modal {
  color: #64748b !important;
}

.light-theme .btn-close-modal:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.light-theme .modal-footer {
  border-top-color: #e2e8f0 !important;
}

.light-theme .form-group label,
.light-theme label,
.light-theme .form-label {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.light-theme .form-group input:not([type="checkbox"]),
.light-theme .form-group select,
.light-theme .form-group textarea,
.light-theme .form-control {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .form-group input:not([type="checkbox"]):focus,
.light-theme .form-group select:focus,
.light-theme .form-group textarea:focus,
.light-theme .form-control:focus {
  background: #ffffff !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
  color: #0f172a !important;
}

.light-theme .form-group input::placeholder,
.light-theme .form-group textarea::placeholder,
.light-theme .form-control::placeholder {
  color: #94a3b8 !important;
}

.light-theme .form-check {
  color: #1e293b !important;
  font-weight: 500 !important;
}

.light-theme .form-check input[type="checkbox"] {
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
}

.light-theme .form-check input[type="checkbox"]:checked {
  background: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
}

.light-theme .btn-secondary,
.light-theme .btn-ghost {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.light-theme .btn-secondary:hover,
.light-theme .btn-ghost:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.light-theme .select2-container--default .select2-selection--single {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a !important;
}

.light-theme .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8 !important;
}

.light-theme .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #475569 transparent transparent transparent !important;
}

.light-theme .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

/* =======================================================================
   LIGHT THEME SIDEBAR SUBMENU & FLYOUT STYLING
   ======================================================================= */
.light-theme .sidebar-submenu {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: blur(16px) !important;
}

.light-theme .submenu-item {
  color: #334155 !important;
  font-weight: 500 !important;
}

.light-theme .submenu-item:hover {
  color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.08) !important;
  font-weight: 600 !important;
}

.light-theme .submenu-item.active {
  color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
  font-weight: 600 !important;
}

/* =======================================================================
   GLASSMORPHIC SWEETALERT2 CONFIRMATION POPUP STYLES
   ======================================================================= */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-nobackdrop {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.glass-swal-popup {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(239, 68, 68, 0.12) !important;
  padding: 32px 28px !important;
  color: #f8fafc !important;
  width: auto !important;
  max-width: 440px !important;
}

.glass-swal-popup.light-theme {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

/* SweetAlert Icon Glow & Animations */
.swal2-icon {
  margin: 10px auto 20px !important;
  border-width: 3px !important;
}

.swal2-icon.swal2-warning {
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.12) !important;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3) !important;
  animation: swalIconPulse 2s infinite ease-in-out !important;
}

.swal2-icon.swal2-error,
.swal2-icon.swal2-danger {
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.35) !important;
}

.swal2-icon.swal2-question {
  border-color: rgba(139, 92, 246, 0.5) !important;
  color: #a78bfa !important;
  background: rgba(139, 92, 246, 0.12) !important;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3) !important;
}

.swal2-icon.swal2-info {
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #60a5fa !important;
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3) !important;
}

@keyframes swalIconPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.45);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  }
}

.glass-swal-title {
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  letter-spacing: -0.3px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.light-theme .glass-swal-title {
  color: #0f172a !important;
}

.glass-swal-html,
.swal-custom-text {
  font-size: 14px !important;
  color: #94a3b8 !important;
  line-height: 1.6 !important;
  margin-top: 4px !important;
  margin-bottom: 22px !important;
}

.light-theme .glass-swal-html,
.light-theme .swal-custom-text {
  color: #475569 !important;
}

.glass-swal-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 12px !important;
  width: 100% !important;
}

/* Custom Buttons for Swal */
.btn-swal-confirm {
  padding: 11px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 1 !important;
  min-width: 130px !important;
}

.btn-swal-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45), 0 0 0 1px rgba(239, 68, 68, 0.3) !important;
}

.btn-swal-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6), 0 0 0 1px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.btn-swal-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.3) !important;
}

.btn-swal-primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%) !important;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.btn-swal-cancel {
  padding: 11px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex: 1 !important;
  min-width: 110px !important;
}

.light-theme .btn-swal-cancel {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.btn-swal-cancel:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.light-theme .btn-swal-cancel:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}