/* ============================================================
   ERP Pro - Enterprise Management System
   Global Styles
   ============================================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --dark: #1e293b;
  --sidebar-width: 260px;
  --header-height: 64px;
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: #0f172a; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
#app { min-height: 100vh; }

.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}

.sidebar-logo-text { flex: 1; }
.sidebar-logo-name { font-size: 15px; font-weight: 700; color: #f1f5f9; }
.sidebar-logo-tagline { font-size: 10px; color: #94a3b8; }

.sidebar-user {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  margin: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}

.sidebar-user-name { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.sidebar-user-role { font-size: 11px; color: #94a3b8; text-transform: capitalize; }

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

.sidebar-section-title {
  font-size: 10px; font-weight: 600;
  color: #64748b; text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 20px 4px;
}

.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  margin: 1px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.sidebar-item:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }

.sidebar-item.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

.sidebar-item i { width: 18px; text-align: center; font-size: 13px; }
.sidebar-item-badge {
  margin-left: auto;
  background: var(--danger);
  color: white; font-size: 10px;
  padding: 2px 6px; border-radius: 10px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  transition: margin-left 0.3s ease;
}

/* Header */
.topbar {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.topbar-title { font-size: 16px; font-weight: 600; color: #0f172a; flex: 1; }
.topbar-title span { font-size: 13px; color: #64748b; font-weight: 400; margin-left: 8px; }

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

/* Page Content */
.page-content { flex: 1; padding: 24px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  background: #fafafa;
}

.card-title { font-size: 15px; font-weight: 600; color: #0f172a; }
.card-body { padding: 20px; }

/* Stat Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

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

.stat-label { font-size: 12px; color: #64748b; font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; color: #0f172a; }
.stat-change { font-size: 12px; color: #10b981; margin-top: 2px; }
.stat-change.negative { color: #ef4444; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 8px 16px;
  border-radius: 8px; border: none;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }

.btn-secondary { background: #e0e7ff; color: var(--primary); }
.btn-secondary:hover { background: #c7d2fe; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; }

.btn-info { background: var(--info); color: white; }
.btn-info:hover { background: #2563eb; }

.btn-outline { background: transparent; border: 1.5px solid #e2e8f0; color: #475569; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #f0f4ff; }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }
.btn-xl { padding: 16px 32px; font-size: 17px; border-radius: 12px; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px;
  font-weight: 500; color: #374151;
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px; color: #1e293b;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.form-control.error { border-color: var(--danger); }
.form-control:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
.form-text { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 4px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.form-check label { font-size: 13px; color: #374151; cursor: pointer; }

.input-group { display: flex; align-items: stretch; }
.input-group-text {
  padding: 9px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 13px; color: #64748b;
}
.input-group .form-control { border-radius: 0 8px 8px 0; }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}

.table th {
  background: #f8fafc;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  vertical-align: middle;
}

.table tbody tr:hover { background: #fafbff; }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-primary { background: #e0e7ff; color: #3730a3; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: slideIn 0.2s ease;
}

.modal-sm { max-width: 400px; }
.modal-md { max-width: 600px; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1100px; }
.modal-full { max-width: 95vw; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fafafa, #f8fafc);
}

.modal-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex; justify-content: flex-end; gap: 10px;
  background: #fafafa;
}

.btn-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none; background: #f1f5f9;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; font-size: 14px;
  transition: var(--transition);
}
.btn-close:hover { background: #e2e8f0; color: #ef4444; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: scale(0.95) translateY(-10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; border-bottom: 2px solid #e2e8f0; gap: 2px; overflow-x: auto; }

.tab {
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  color: #64748b;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
  white-space: nowrap;
}

.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; padding: 20px 0; }
.tab-content.active { display: block; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; margin-bottom: 16px;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   GRID
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ============================================================
   LOADING
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode {
  background: #0f172a; color: #e2e8f0;
}

body.dark-mode .card,
body.dark-mode .topbar,
body.dark-mode .modal {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .card-header,
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
  background: #1e2d40;
}

body.dark-mode .form-control {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .table th { background: #1e293b; color: #94a3b8; }
body.dark-mode .table td { border-color: #334155; color: #cbd5e1; }
body.dark-mode .table tbody tr:hover { background: #1e2d40; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 { color: #f1f5f9; }
body.dark-mode .topbar-title { color: #f1f5f9; }
body.dark-mode .stat-value { color: #f1f5f9; }
body.dark-mode .stat-card { background: #1e293b; border-color: #334155; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #e2e8f0 !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-content { padding: 16px; }
  .modal-lg, .modal-xl, .modal-full { max-width: 100%; }
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1000;
  min-width: 180px;
  padding: 6px;
  display: none;
  animation: fadeIn 0.15s ease;
}

.dropdown-menu.show { display: block; }

.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px; color: #374151;
  transition: var(--transition);
}

.dropdown-item:hover { background: #f8fafc; color: var(--primary); }
.dropdown-item.danger:hover { background: #fee2e2; color: var(--danger); }
.dropdown-divider { border-top: 1px solid #f1f5f9; margin: 4px 0; }

/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%; transform: translateX(-50%);
  background: #1e293b; color: white;
  padding: 5px 10px; border-radius: 6px;
  font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  z-index: 9999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 99999; display: flex; flex-direction: column; gap: 10px;
  max-width: 380px;
}

.toast {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-left: 4px solid;
  display: flex; gap: 12px; align-items: flex-start;
  animation: slideIn 0.3s ease;
  font-size: 13px;
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-warning { border-color: var(--warning); }
.toast-info { border-color: var(--info); }
.toast-title { font-weight: 600; margin-bottom: 3px; color: #0f172a; }
.toast-msg { color: #64748b; }

/* ============================================================
   POS SYSTEM
   ============================================================ */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 0; height: calc(100vh - 64px); overflow: hidden; }
.pos-products { overflow-y: auto; padding: 16px; background: #f8fafc; }
.pos-cart { background: white; border-left: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.pos-cart-header { padding: 16px; border-bottom: 1px solid #f1f5f9; background: #fafafa; }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.pos-cart-footer { padding: 16px; border-top: 1px solid #e2e8f0; background: #fafafa; }

.cart-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px;
  border: 1px solid #f1f5f9;
  border-radius: 8px; margin-bottom: 8px;
  background: white;
}

.pos-num-key {
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 8px; padding: 12px;
  font-size: 16px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: var(--transition);
}
.pos-num-key:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pos-num-key.action { background: var(--primary); color: white; border-color: var(--primary); }

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

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0 5%;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}

.landing-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #312e81 100%);
  display: flex; align-items: center;
  padding: 100px 5% 80px;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.pricing-card {
  background: white; border-radius: 20px;
  border: 2px solid #e2e8f0;
  padding: 32px; transition: var(--transition);
  position: relative; overflow: hidden;
}
.pricing-card:hover { border-color: var(--primary); box-shadow: 0 20px 40px rgba(99,102,241,0.15); transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99,102,241,0.2);
  transform: scale(1.02);
}

.feature-card {
  background: white; border-radius: 16px;
  padding: 24px; border: 1px solid #e2e8f0;
  transition: var(--transition);
}
.feature-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }

/* ============================================================
   INVOICE/RECEIPT PREVIEW
   ============================================================ */
.invoice-preview {
  background: white;
  min-height: 297mm;
  width: 210mm;
  padding: 20mm;
  font-size: 12pt;
  color: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.receipt-preview {
  background: white;
  width: 80mm;
  padding: 5mm;
  font-size: 9pt;
  color: #000;
  font-family: 'Courier New', monospace;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: 0 auto;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-box {
  position: relative; flex: 1; max-width: 400px;
}
.search-box i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 13px;
}
.search-box input {
  width: 100%; padding: 8px 12px 8px 36px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 13px; color: #1e293b; outline: none;
  transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress {
  height: 8px; background: #e2e8f0;
  border-radius: 999px; overflow: hidden;
}
.progress-bar {
  height: 100%; background: var(--primary);
  border-radius: 999px; transition: width 0.5s ease;
}
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }

/* ============================================================
   STEP WIZARD
   ============================================================ */
.steps {
  display: flex; align-items: center;
  gap: 0; margin-bottom: 30px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  flex: 1;
}
.step:last-child { flex: 0; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  border: 2px solid #e2e8f0; background: white;
  color: #94a3b8; flex-shrink: 0;
  transition: var(--transition);
}
.step.active .step-num { border-color: var(--primary); background: var(--primary); color: white; }
.step.done .step-num { border-color: var(--success); background: var(--success); color: white; }
.step-line { flex: 1; height: 2px; background: #e2e8f0; }
.step.done .step-line { background: var(--success); }
.step-label { font-size: 12px; font-weight: 500; color: #94a3b8; margin-top: 4px; }
.step.active .step-label { color: var(--primary); }
.step.done .step-label { color: var(--success); }

/* ============================================================
   MISC
   ============================================================ */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: #94a3b8; }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.rounded { border-radius: 8px; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.divider { border: none; border-top: 1px solid #e2e8f0; margin: 16px 0; }

.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
  color: #94a3b8;
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { color: #475569; margin-bottom: 8px; }

.floating-actions {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 500;
}

/* Color themes */
body[data-theme="blue"] { --primary: #3b82f6; --primary-dark: #2563eb; --primary-light: #dbeafe; --secondary: #0ea5e9; }
body[data-theme="emerald"] { --primary: #10b981; --primary-dark: #059669; --primary-light: #d1fae5; --secondary: #047857; }
body[data-theme="rose"] { --primary: #f43f5e; --primary-dark: #e11d48; --primary-light: #ffe4e6; --secondary: #ec4899; }
body[data-theme="amber"] { --primary: #f59e0b; --primary-dark: #d97706; --primary-light: #fef3c7; --secondary: #f97316; }
body[data-theme="violet"] { --primary: #7c3aed; --primary-dark: #6d28d9; --primary-light: #ede9fe; --secondary: #6d28d9; }
body[data-theme="teal"] { --primary: #0d9488; --primary-dark: #0f766e; --primary-light: #ccfbf1; --secondary: #0891b2; }
