/* PipAlgo POS - MQL5-Inspired Professional Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* MQL5 Core Colors */
  --bg-primary:    #0e1117;
  --bg-secondary:  #141920;
  --bg-card:       #1a2130;
  --bg-hover:      #1f2a3a;
  --bg-input:      #111820;
  --border:        #263040;
  --border-light:  #1c2535;

  /* MQL5 Blue Accent */
  --accent:        #1b76c8;
  --accent-hover:  #2e8fe0;
  --accent-glow:   rgba(27,118,200,0.18);
  --accent-soft:   rgba(27,118,200,0.10);

  /* Status Colors */
  --success:       #27ae60;
  --success-bg:    rgba(39,174,96,0.10);
  --warning:       #e67e22;
  --warning-bg:    rgba(230,126,34,0.10);
  --danger:        #e74c3c;
  --danger-bg:     rgba(231,76,60,0.10);
  --info:          #3498db;
  --info-bg:       rgba(52,152,219,0.10);
  --purple:        #9b59b6;
  --purple-bg:     rgba(155,89,182,0.10);
  --orange:        #f39c12;

  /* Text */
  --text-primary:   #dce8f5;
  --text-secondary: #7d99b5;
  --text-muted:     #3d5268;

  /* Layout */
  --sidebar-width:   250px;
  --topbar-height:   56px;
  --radius:          6px;
  --radius-lg:       10px;
  --shadow:          0 8px 32px rgba(0,0,0,0.5);
  --shadow-sm:       0 2px 10px rgba(0,0,0,0.35);
  --transition:      0.18s ease;
  --font-mono:       'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== LAYOUT ===== */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg-card);
  padding: 3px;
  flex-shrink: 0;
}

.brand-logo-placeholder {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #0d4f8c);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white;
  flex-shrink: 0;
}

.brand-text .brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand-text .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }

.nav-section {
  padding: 10px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  margin: 1px 8px;
  border-radius: var(--radius);
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(27,118,200,0.25);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.nav-item i { width: 16px; text-align: center; font-size: 13px; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-badge.success { background: var(--success); }
.nav-badge.warning { background: var(--warning); }

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid var(--border);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.user-info:hover { background: var(--bg-hover); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0d4f8c);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: white;
  flex-shrink: 0;
}
.user-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 10px; color: var(--text-muted); }

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 90;
}
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text-primary); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.topbar-btn {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
  position: relative;
  text-decoration: none;
}
.topbar-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent); }
.topbar-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius);
}

/* ===== PAGE CONTENT ===== */
.page-content { padding: 20px; flex: 1; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-title i { color: var(--accent); }
.card-body { padding: 18px; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.stat-change { font-size: 11px; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 14px var(--accent-glow); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover { background: #2ebd6c; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #f05249; }
.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }
.btn-warning:hover { background: #eb8c2e; }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 4px 9px; font-size: 11px; }
.btn-lg { padding: 10px 22px; font-size: 14px; }
.btn-icon { padding: 7px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; margin-bottom: 5px;
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control, .form-select {
  width: 100%;
  padding: 8px 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.input-group-text {
  padding: 8px 11px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.input-group-prepend .input-group-text { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.input-group-prepend + .form-control { border-radius: 0 var(--radius) var(--radius) 0; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-secondary);
}
tbody td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 13px;
}
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(39,174,96,0.2); }
.badge-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(231,76,60,0.2); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(230,126,34,0.2); }
.badge-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(52,152,219,0.2); }
.badge-secondary { background: var(--bg-hover); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid rgba(155,89,182,0.2); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(12px);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 860px; }
.modal-xl { max-width: 1150px; }
.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; transition: color var(--transition); padding: 2px; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 18px; }
.modal-footer { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* ===== ALERT ===== */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
}
.alert-success { background: var(--success-bg); border: 1px solid rgba(39,174,96,0.3); color: var(--success); }
.alert-danger { background: var(--danger-bg); border: 1px solid rgba(231,76,60,0.3); color: var(--danger); }
.alert-warning { background: var(--warning-bg); border: 1px solid rgba(230,126,34,0.3); color: var(--warning); }
.alert-info { background: var(--info-bg); border: 1px solid rgba(52,152,219,0.3); color: var(--info); }

/* ===== TABS ===== */
.tabs { display: flex; border-bottom: 1px solid var(--border); gap: 2px; }
.tab-btn {
  padding: 9px 14px;
  background: none; border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; padding: 18px 0; }
.tab-content.active { display: block; }

/* ===== POS SPECIFIC ===== */
.category-pill {
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px; font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.category-pill:hover { border-color: var(--accent); color: var(--accent); }
.category-pill.active { background: var(--accent); border-color: var(--accent); color: white; }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,118,200,0.18);
}
.product-card.out-of-stock { opacity: 0.45; cursor: not-allowed; }
.product-card.out-of-stock:hover { transform: none; border-color: var(--border); }
.product-img {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  margin: 0 auto 8px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.product-name { font-size: 11px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.product-price { font-size: 13px; font-weight: 700; color: var(--accent-hover); font-family: var(--font-mono); }
.product-stock { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.product-stock.low { color: var(--warning); }
.stock-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; margin-right: 3px; }
.stock-dot.in { background: var(--success); }
.stock-dot.low { background: var(--warning); }
.stock-dot.out { background: var(--danger); }

/* Cart */
.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: var(--radius);
  margin-bottom: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--border); }

.qty-control { display: flex; align-items: center; gap: 5px; }
.qty-btn {
  width: 22px; height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
}
.qty-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }
.qty-input {
  width: 36px;
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  padding: 2px;
}
.cart-remove {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  transition: color var(--transition);
  font-size: 13px; padding: 2px;
}
.cart-remove:hover { color: var(--danger); }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}
.summary-row .label { color: var(--text-secondary); }
.summary-row .value { font-family: var(--font-mono); color: var(--text-primary); font-weight: 500; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.summary-row.total .label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.summary-row.total .value { font-size: 20px; font-weight: 800; color: var(--success); }

/* Numpad */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 10px 14px; }
.numpad-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px;
  text-align: center;
  cursor: pointer;
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition);
  user-select: none;
}
.numpad-btn:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--accent); }
.numpad-btn:active { transform: scale(0.95); }
.numpad-btn.action { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* POS layout override */
.pos-wrapper { display: grid; grid-template-columns: 1fr 400px; height: calc(100vh - var(--topbar-height)); overflow: hidden; }
.pos-left { display: flex; flex-direction: column; background: var(--bg-primary); overflow: hidden; }
.pos-search-bar { padding: 10px 14px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); display: flex; gap: 9px; }
.pos-cats { padding: 9px 14px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); display: flex; gap: 6px; overflow-x: auto; flex-shrink: 0; }
.pos-cats::-webkit-scrollbar { height: 3px; }
.pos-grid { flex: 1; overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; align-content: start; }
.pos-right { background: var(--bg-secondary); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.cart-top { flex: 1; overflow-y: auto; padding: 8px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; color: var(--text-muted); gap: 10px; }
.cart-empty i { font-size: 36px; opacity: 0.25; }
.payment-btn { padding: 14px; font-size: 15px; font-weight: 700; border-radius: 0; }

/* ===== RECEIPT PRINT ===== */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin: 0 !important; }
  .receipt-wrapper { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 11px; }
}

/* ===== CHARTS ===== */
.chart-container { position: relative; height: 240px; }

/* ===== UTILITIES ===== */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-3 { margin-top: 12px; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--accent); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.fw-bold { font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.w-100 { width: 100%; }

/* Toast */
.toast-container { position: fixed; top: 14px; right: 14px; z-index: 9999; display: flex; flex-direction: column; gap: 7px; }
.toast {
  min-width: 270px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 9px;
  animation: slideIn 0.25s ease;
  font-size: 13px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }
.toast-icon { font-size: 15px; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }

/* Pagination */
.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn {
  padding: 4px 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer; font-size: 12px;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* Empty state */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state i { font-size: 42px; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 15px; font-weight: 600; margin-bottom: 7px; color: var(--text-secondary); }

/* Loading */
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .pos-wrapper { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
