/* Core Variables & Dark Theme */
:root {
  --bg-main: #0B0F19;           /* Obsidian background */
  --bg-sidebar: #090C15;        /* Deep black sidebar */
  --bg-card: rgba(22, 28, 45, 0.7); /* Translucent dark navy card */
  --bg-input: #172033;          /* Darker slate for inputs */
  
  --text-main: #F8FAFC;         /* Soft white text */
  --text-muted: #94A3B8;        /* Slate gray text */
  --text-light: #FFFFFF;        /* Pure white */
  
  --border-color: rgba(255, 255, 255, 0.08); /* Transparent borders */
  --border-focus: #00F0FF;      /* Neon Cyan */
  
  --color-waiting: #38BDF8;      /* Electric Cyan/Blue */
  --color-washing: #34D399;      /* Neon Green */
  --color-ready: #FBBF24;        /* Radiant Amber */
  
  --color-waiting-bg: rgba(56, 189, 248, 0.08);
  --color-washing-bg: rgba(52, 211, 153, 0.08);
  --color-ready-bg: rgba(251, 191, 36, 0.08);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.15);
  
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode overrides */
html.light-mode {
  --bg-main: #F8FAFC;           /* Clean slate light background */
  --bg-sidebar: #FFFFFF;        /* Crisp white sidebar */
  --bg-card: #FFFFFF;           /* Solid white card */
  --bg-input: #F1F5F9;          /* Light slate input */
  
  --text-main: #0F172A;         /* Deep slate/black text */
  --text-muted: #64748B;        /* Cool grey text */
  --text-light: #FFFFFF;        /* Pure white (keep white for buttons) */
  
  --border-color: #E2E8F0;      /* Clear light border */
  --border-focus: #0EA5E9;      /* Ocean Cyan/Blue */
  
  --color-waiting: #0284C7;      /* Ocean Blue */
  --color-washing: #059669;      /* Emerald Green */
  --color-ready: #D97706;        /* Warm Amber */
  
  --color-waiting-bg: #F0F9FF;
  --color-washing-bg: #ECFDF5;
  --color-ready-bg: #FFFBEB;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, #152238 0%, #0B0F19 75%);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* App Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 90px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  z-index: 10;
}

.logo {
  font-size: 24px;
  margin-bottom: 35px;
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  color: #0b0f19;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: var(--transition);
}
.logo:hover {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.nav-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  gap: 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  padding: 14px 0;
  transition: var(--transition);
  font-size: 10px;
  font-weight: 600;
  gap: 8px;
  position: relative;
  border-radius: 12px;
  margin: 0 8px;
}

.nav-item i {
  font-size: 20px;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.08);
}

.nav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background-color: #00F0FF;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px #00F0FF;
}

.spacer {
  flex: 1;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  background-color: rgba(11, 15, 25, 0.5);
  /* backdrop-filter disabled for performance */
  border-bottom: 1px solid var(--border-color);
  height: 75px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(120deg, #F8FAFC 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.store-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.store-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.store-type {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

/* Content Split */
.content-split {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 30px;
  gap: 30px;
}

.pos-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  gap: 20px;
  overflow: hidden;
  padding-right: 8px;
}

.kanban-section {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  /* backdrop-filter disabled for performance */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  background-color: rgba(22, 28, 45, 0.9);
}

.search-icon {
  color: var(--text-muted);
  font-size: 16px;
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  text-transform: uppercase;
}

.search-bar input::placeholder {
  color: var(--text-muted);
  text-transform: none;
}

.plate-preview {
  background: #F8FAFC;
  color: #0F172A;
  border: 2px solid #334155;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  letter-spacing: 2px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

/* Packages Grid */
.packages-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
  padding-right: 4px;
  padding-bottom: 15px;
}

.package-card {
  background: rgba(30, 41, 67, 0.4);
  /* backdrop-filter disabled for performance */
  /* -webkit-backdrop-filter disabled */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  min-height: 150px;
}

.package-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 240, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  background: rgba(30, 41, 67, 0.7);
}

.package-card.active {
  border-color: #00F0FF;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.85) 0%, rgba(0, 240, 255, 0.08) 100%);
}

.active-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--border-focus);
  color: #0b0f19;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.pkg-icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: var(--transition);
}

.package-card.active .pkg-icon {
  color: var(--border-focus);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.pkg-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.pkg-price {
  font-size: 14px;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 6px;
}

.package-card.active .pkg-price {
  color: #00F0FF;
}

.pkg-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
  margin-bottom: 10px;
  flex-grow: 1;
}

.pkg-time {
  align-self: flex-end;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Order Summary */
.order-summary {
  margin-top: auto;
  flex-shrink: 0;
  background-color: var(--bg-card);
  /* backdrop-filter disabled for performance */
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.summary-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.total-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 18px;
  font-weight: 800;
  color: #00F0FF;
  margin-bottom: 20px;
}

.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  color: #0B0F19;
  border: none;
  padding: 15px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
  filter: brightness(1.1);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.primary-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-color);
  box-shadow: none;
  cursor: not-allowed;
}

.pay-btn {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pay-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.action-btn-small {
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.action-btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-start {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.2);
}

.btn-start:hover {
  background: rgba(56, 189, 248, 0.2);
}

.btn-finish {
  background: rgba(52, 211, 153, 0.1);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.2);
}

.btn-finish:hover {
  background: rgba(52, 211, 153, 0.2);
}

html.light-mode .pay-btn {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0284C7;
}

html.light-mode .pay-btn:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  color: #0369A1;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
}

html.light-mode .action-btn-small {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

html.light-mode .action-btn-small:hover {
  background: rgba(0, 0, 0, 0.08);
}

html.light-mode .btn-start {
  background: rgba(14, 165, 233, 0.08);
  color: #0284C7;
  border-color: rgba(14, 165, 233, 0.2);
}

html.light-mode .btn-start:hover {
  background: rgba(14, 165, 233, 0.15);
}

html.light-mode .btn-finish {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

html.light-mode .btn-finish:hover {
  background: rgba(16, 185, 129, 0.15);
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.kanban-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.015);
  /* backdrop-filter disabled for performance */
  /* -webkit-backdrop-filter disabled */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1), 0 10px 30px rgba(0,0,0,0.1);
}

.column-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.column-header.bg-blue { 
  color: #38BDF8; 
  border-top: 3px solid #38BDF8; 
}
.column-header.bg-green { 
  color: #34D399; 
  border-top: 3px solid #34D399; 
}
.column-header.bg-yellow { 
  color: #FBBF24; 
  border-top: 3px solid #FBBF24; 
}

.column-body {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 150px;
}

.column-body.drag-over {
  background: rgba(0, 240, 255, 0.05);
  border: 2px dashed rgba(0, 240, 255, 0.3);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Kanban Cards */
.k-card {
  background: rgba(30, 41, 67, 0.5);
  /* backdrop-filter disabled for performance */
  /* -webkit-backdrop-filter disabled */
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.k-card:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-color: rgba(255, 255, 255, 0.15);
  border-left-color: #00F0FF;
  transform: translateY(-3px);
  background: rgba(30, 41, 67, 0.8);
}

.k-card:active {
  cursor: grabbing;
}

.k-card.dragging {
  opacity: 0.5;
  transform: scale(0.95) rotate(2deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border-color: #00F0FF;
}

.k-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.k-plate {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 800;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.k-type {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  background: rgba(0,0,0,0.2);
  padding: 3px 8px;
  border-radius: 12px;
}

.k-package {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #38BDF8;
  margin-bottom: 14px;
}


.k-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.k-time {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-waiting { background: var(--color-waiting-bg); color: var(--color-waiting); border: 1px solid rgba(56, 189, 248, 0.15); }
.status-washing { background: var(--color-washing-bg); color: var(--color-washing); border: 1px solid rgba(52, 211, 153, 0.15); }
.status-ready { background: var(--color-ready-bg); color: var(--color-ready); border: 1px solid rgba(251, 191, 36, 0.15); }

/* --- Dashboard Specific Styles --- */
.dashboard-main {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, #152238 0%, #0B0F19 75%);
  overflow-y: auto;
}

.dashboard-search {
  max-width: 420px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.dashboard-search input {
  font-size: 13px;
  text-transform: none;
}

.dashboard-search input::placeholder {
  text-transform: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  padding-left: 15px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.user-text {
  display: flex;
  flex-direction: column;
}

.user-text .user-name {
  margin: 0;
}

.border-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.border-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.dashboard-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header .page-title {
  font-size: 24px;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.s-card {
  background: var(--bg-card);
  /* backdrop-filter disabled for performance */
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.s-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.s-card:nth-child(1)::before { background: linear-gradient(90deg, #00F0FF, #3B82F6); }
.s-card:nth-child(2)::before { background: linear-gradient(90deg, #34D399, #10B981); }
.s-card:nth-child(3)::before { background: linear-gradient(90deg, #F87171, #EF4444); }
.s-card:nth-child(4)::before { background: linear-gradient(90deg, #FBBF24, #F59E0B); }

.s-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.s-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.s-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.s-card:hover .s-icon {
  background: rgba(255,255,255,0.06);
}

.s-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
}

.s-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-green {
  background: rgba(52, 211, 153, 0.1);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.text-blue { color: #00F0FF; }
.text-red { color: #F87171; }

.s-value {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.s-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* Dashboard Row */
.dashboard-row {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--bg-card);
  /* backdrop-filter disabled for performance */
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Chart */
.chart-wrapper {
  flex: 1;
  min-height: 280px;
  position: relative;
}

/* Leaderboard Table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-table td {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

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

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.leaderboard-table tr:nth-child(1) .rank-badge { background: rgba(251, 191, 36, 0.15); color: #FBBF24; border-color: rgba(251, 191, 36, 0.3); }
.leaderboard-table tr:nth-child(2) .rank-badge { background: rgba(203, 213, 225, 0.15); color: #E2E8F0; border-color: rgba(203, 213, 225, 0.3); }
.leaderboard-table tr:nth-child(3) .rank-badge { background: rgba(180, 83, 9, 0.15); color: #F59E0B; border-color: rgba(180, 83, 9, 0.3); }

.staff-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.08);
}

.staff-commission {
  font-weight: 700;
  color: #38BDF8;
}

.text-yellow {
  color: #FBBF24;
}

/* --- Customer Table Styles --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 16px 24px;
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px 24px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  color: var(--text-main);
}

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

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.visit-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.visit-badge.loyal {
  background-color: rgba(251, 191, 36, 0.1);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.08);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-info {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.page-controls {
  display: flex;
  gap: 8px;
}

/* Payment Tags */
.pay-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-gray { background-color: rgba(255,255,255,0.05); color: #94A3B8; border: 1px solid rgba(255,255,255,0.08); }
.tag-blue { background-color: rgba(56, 189, 248, 0.1); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.15); }
.tag-green { background-color: rgba(52, 211, 153, 0.1); color: #34D399; border: 1px solid rgba(52, 211, 153, 0.15); }
.tag-purple { background-color: rgba(168, 85, 247, 0.1); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.15); }

/* Settings Layout */
.settings-layout {
  display: flex;
  min-height: 650px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.settings-sidebar {
  width: 260px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-tab {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-tab i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.setting-tab:hover {
  background-color: rgba(0, 240, 255, 0.03);
  color: var(--text-main);
}

.setting-tab.active {
  background-color: rgba(0, 240, 255, 0.08);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.settings-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Form Layouts */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  background-color: var(--bg-input);
}

textarea.form-control {
  resize: vertical;
}

/* Logo Upload */
.logo-upload-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.logo-preview-box {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px dashed var(--border-color);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.logo-preview-box:hover {
  border-color: var(--border-focus);
}

.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview-box i {
  font-size: 24px;
  color: var(--text-muted);
}

.logo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-upload-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Input Fields overrides (e.g. for page settings) */
.input-field {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* --- Reports Metric Cards --- */
.stat-card {
  background: var(--bg-card);
  /* backdrop-filter disabled for performance */
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, #00F0FF);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* --- Modal Dialog --- */
.modal-dialog {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #131926;
  color: var(--text-main);
  padding: 0;
  max-width: 500px;
  width: 95%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.15);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-dialog::backdrop {
  background: rgba(5, 8, 16, 0.75);
  /* backdrop-filter disabled for performance */
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.01);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(120deg, #F8FAFC 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#customer-form {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Confirm Dialog Specific Styles */
.confirm-dialog {
  max-width: 420px;
}

.confirm-body {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

#confirm-message {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.danger-btn {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.danger-btn:hover:not(:disabled) {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45) !important;
}

/* --- Light Mode Specific Components overrides --- */
html.light-mode body {
  background-image: radial-gradient(circle at 50% 0%, #E0F2FE 0%, #F8FAFC 75%);
}

html.light-mode .sidebar {
  border-right: 1px solid #E2E8F0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.02);
}

html.light-mode .nav-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

html.light-mode .nav-item.active {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
}

html.light-mode .nav-item.active i {
  filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.4));
}

html.light-mode .nav-item.active::before {
  background-color: #0284C7;
  box-shadow: 0 0 10px #0284C7;
}

html.light-mode .logo {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

html.light-mode .logo:hover {
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

html.light-mode .topbar {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #E2E8F0;
}

html.light-mode .primary-btn {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
}

html.light-mode .primary-btn:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html.light-mode .page-title {
  background: linear-gradient(120deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light-mode .icon-btn {
  background: rgba(0, 0, 0, 0.02);
}

html.light-mode .icon-btn:hover {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.2);
}

html.light-mode .package-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

html.light-mode .package-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(14, 165, 233, 0.1);
}

html.light-mode .package-card.active {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(14, 165, 233, 0.05) 100%);
  border-color: #0EA5E9;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15), inset 0 0 20px rgba(14, 165, 233, 0.05);
}

html.light-mode .active-badge {
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

html.light-mode .kanban-column {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.5), 0 4px 15px rgba(0,0,0,0.02);
}

html.light-mode .column-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

html.light-mode .k-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.8));
  border: 1px solid rgba(255, 255, 255, 1);
  border-left: 4px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255,255,255,0.5);
  border-radius: 12px;
}

html.light-mode .k-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(14, 165, 233, 0.3);
  border-left-color: #0EA5E9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

html.light-mode .k-card.dragging {
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border-color: #0EA5E9;
}

html.light-mode .k-plate {
  border: none;
  background: #F1F5F9;
  color: #0F172A;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

html.light-mode .k-type {
  background: rgba(0,0,0,0.04);
}

html.light-mode .k-package {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #0284C7;
}

html.light-mode .k-footer {
  border-top: 1px solid #F1F5F9;
}

html.light-mode .column-body.drag-over {
  background-color: rgba(14, 165, 233, 0.03);
  border: 2px dashed rgba(14, 165, 233, 0.2);
}

html.light-mode .search-bar:focus-within {
  background-color: #FFFFFF;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

html.light-mode .modal-dialog {
  background: #FFFFFF;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 30px rgba(14, 165, 233, 0.08);
}

html.light-mode .modal-header {
  border-bottom: 1px solid #E2E8F0;
  background-color: rgba(0, 0, 0, 0.01);
}

html.light-mode .modal-header h3 {
  background: linear-gradient(120deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light-mode .modal-footer {
  border-top: 1px solid #E2E8F0;
}

html.light-mode .confirm-icon {
  background: rgba(239, 68, 68, 0.05);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.05);
}

html.light-mode .s-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

html.light-mode .s-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

html.light-mode .s-icon {
  background: #F8FAFC;
}

html.light-mode .s-card:hover .s-icon {
  background: #F1F5F9;
}

html.light-mode .rank-badge {
  background: #F8FAFC;
}

html.light-mode .leaderboard-table th, 
html.light-mode .leaderboard-table td, 
html.light-mode .data-table th, 
html.light-mode .data-table td, 
html.light-mode .pagination {
  border-bottom-color: #E2E8F0;
  border-top-color: #E2E8F0;
}

html.light-mode .data-table th {
  background-color: #F8FAFC;
}

html.light-mode .form-control {
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

html.light-mode .form-control:focus {
  background-color: #FFFFFF;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

html.light-mode .settings-sidebar {
  background-color: #F8FAFC;
  border-right: 1px solid #E2E8F0;
}

html.light-mode .settings-content {
  background-color: #FFFFFF;
}

html.light-mode .setting-tab:hover {
  background-color: rgba(2, 132, 199, 0.03);
}

html.light-mode .setting-tab.active {
  background-color: #FFFFFF;
  color: #0EA5E9;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #0EA5E9;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
}

html.light-mode .visit-badge {
  background-color: #F1F5F9;
}

/* --- Reports Styles --- */
.report-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reports-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.report-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    padding-bottom: 70px;
  }

  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    flex-direction: row;
    padding: 0 10px;
    z-index: 1000;
    border-right: none;
    border-top: 1px solid var(--border-color);
    background: var(--bg-sidebar, var(--bg-card));
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  }

  html.light-mode .sidebar {
    background: #FFFFFF;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  }

  .logo { display: none; }

  .nav-links {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
  }

  .nav-item {
    margin: 0;
    padding: 8px 4px;
    gap: 4px;
    flex: 1;
    border-radius: 8px;
  }

  .nav-item i {
    font-size: 20px;
  }

  .nav-item span {
    font-size: 10px;
    display: block;
  }

  .nav-item.active::before {
    display: none;
  }

  .spacer { display: none; }

  .main-content {
    overflow-y: auto;
  }

  .topbar {
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
  }

  .dashboard-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 5px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-header .page-title {
    font-size: 22px;
  }

  .user-profile .user-text,
  .user-profile .store-info,
  .user-profile .user-name {
    display: none;
  }
  
  .customer-inputs {
    flex-direction: column;
    gap: 8px !important;
  }

  .user-info {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .s-card {
    padding: 16px;
  }

  .s-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-right: 10px;
  }

  .s-value {
    font-size: 18px;
  }

  .s-subtitle {
    font-size: 11px;
  }

  .dashboard-content {
    padding: 15px;
  }

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

  .content-split {
    flex-direction: column;
  }

  .pos-section, .kanban-section {
    width: 100%;
    padding: 15px;
    max-width: 100vw;
  }
  
  .kanban-board {
    flex-direction: column;
  }
  
  .settings-layout {
    flex-direction: column;
  }
  
  .settings-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
  }
  
  html.light-mode .settings-sidebar {
    border-bottom: 1px solid #E2E8F0;
  }
  
  /* Mobile Overrides for Reports */
  .report-filters-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .report-filters-left {
    flex-direction: column;
    width: 100%;
    align-items: flex-start !important;
  }
  .report-filters-left .dashboard-search,
  .report-filters-left select {
    width: 100% !important;
  }
  .report-filters-right {
    width: 100%;
    justify-content: space-between;
  }
  .reports-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-cards-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* --- Print Styles --- */
@media print {
  @page { margin: 1.5cm; }
  body { background: #fff !important; color: #000 !important; font-family: 'Inter', sans-serif !important; }
  
  /* Hide UI elements */
  .sidebar, .topbar, .dashboard-header, .icon-btn, .primary-btn, .search-bar, select, button, .pagination {
    display: none !important;
  }
  
  .main-content { margin-left: 0 !important; padding: 0 !important; width: 100% !important; }
  
  /* Add a custom print header if we want, or just rely on content */
  .dashboard-content::before {
    content: "Laporan Pendapatan ARRZEE CARWASH";
    display: block;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
  }

  .metric-card {
    border: 1px solid #000 !important; 
    background: #fff !important;
    box-shadow: none !important; 
    color: #000 !important;
    page-break-inside: avoid;
    margin-bottom: 15px;
  }
  .metric-card h3 { color: #555 !important; font-size: 14px !important; }
  .metric-card .metric-val { color: #000 !important; font-size: 20px !important; }
  
  .dashboard-grid {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
  }
  .dashboard-grid > div {
    flex: 1 !important;
  }

  /* Table styling */
  table.data-table { border-collapse: collapse !important; width: 100% !important; color: #000 !important; }
  table.data-table th, table.data-table td { 
    border: 1px solid #000 !important; 
    color: #000 !important; 
    padding: 8px !important;
    text-align: left !important;
  }
  table.data-table th { background-color: #eee !important; font-weight: bold !important; }
  
  .pay-tag { 
    border: 1px solid #000 !important; 
    color: #000 !important; 
    background: transparent !important; 
  }
}

/* =========================================
   SweetAlert2 Elegant Theme Override
   ========================================= */
.swal2-popup.swal2-toast {
  background: var(--bg-card, #1A2234) !important;
  border: 1px solid var(--border-color, #2D3748) !important;
  color: var(--text-main, #F1F5F9) !important;
  box-shadow: var(--shadow-hover) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.swal2-popup.swal2-toast .swal2-title {
  color: var(--text-main, #F1F5F9) !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}
.swal2-popup.swal2-toast .swal2-html-container {
  color: var(--text-muted, #94A3B8) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}

/* Modal alerts */
.swal2-popup:not(.swal2-toast) {
  background: var(--bg-main, #0B0F19) !important;
  border: 1px solid var(--border-focus, #00F0FF) !important;
  color: var(--text-main, #F1F5F9) !important;
  border-radius: var(--radius-lg, 16px) !important;
  box-shadow: var(--shadow-hover) !important;
}
.swal2-popup:not(.swal2-toast) .swal2-title {
  color: var(--text-main, #F1F5F9) !important;
  font-family: 'Inter', sans-serif !important;
}
.swal2-popup:not(.swal2-toast) .swal2-html-container {
  color: var(--text-muted, #94A3B8) !important;
  font-family: 'Inter', sans-serif !important;
}
.swal2-popup:not(.swal2-toast) .swal2-confirm {
  background: var(--primary, #00F0FF) !important;
  color: #000 !important;
  border-radius: var(--radius-md, 10px) !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s ease;
}
.swal2-popup:not(.swal2-toast) .swal2-confirm:hover {
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4) !important;
}
.swal2-popup:not(.swal2-toast) .swal2-cancel {
  background: transparent !important;
  color: var(--text-muted, #94A3B8) !important;
  border: 1px solid var(--border-color, #2D3748) !important;
  border-radius: var(--radius-md, 10px) !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s ease;
}
.swal2-popup:not(.swal2-toast) .swal2-cancel:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-main, #F1F5F9) !important;
}

/* Light Mode SweetAlert overrides */
html.light-mode .swal2-popup.swal2-toast {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .swal2-popup.swal2-toast .swal2-title {
  color: #0f172a !important;
}
html.light-mode .swal2-popup.swal2-toast .swal2-html-container {
  color: #64748b !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-title {
  color: #0f172a !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-html-container {
  color: #64748b !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-confirm {
  background: #3b82f6 !important;
  color: #ffffff !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-confirm:hover {
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5) !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-cancel {
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-cancel:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
