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

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

:root {
  --navy: #0f172a;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-light: #eff6ff;
  --bg: #f1f5f9;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.12);
  --transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ── LAYOUT ─────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── TOPBAR ─────────────────────────────────── */
.topbar {
  background: var(--navy);
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.topbar-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-logo span { color: var(--blue); }
.topbar-nav { margin-left: auto; display: flex; gap: 8px; }
.topbar-nav a {
  color: #94a3b8;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.topbar-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ── HERO / PAGE HEADER ──────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 48px 24px 36px;
  text-align: center;
}

.page-header h1 { font-size: 2.1rem; color: #fff; margin-bottom: 8px; }
.page-header p { color: #94a3b8; font-size: 1rem; }

/* ── CARD ───────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── STEP WIZARD ─────────────────────────────── */
.wizard-wrap { padding: 32px 20px 40px; }

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.step-item.active .step-circle { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }
.step-item.done .step-circle { background: var(--success); color: #fff; }

.step-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  text-align: center;
  width: 80px;
  line-height: 1.3;
}

.step-item.active .step-label { color: var(--blue); font-weight: 600; }
.step-item.done .step-label { color: var(--success); }

.step-col { display: flex; flex-direction: column; align-items: center; }

.step-connector {
  width: 50px;
  height: 2px;
  background: #e2e8f0;
  flex-shrink: 0;
  margin-bottom: 22px;
}

.step-connector.done { background: var(--success); }

/* ── FORM ELEMENTS ───────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 0.82rem; color: var(--danger); margin-top: 5px; display: none; }
.form-control.error + .form-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

textarea.form-control { resize: vertical; min-height: 90px; }
input[type="date"].form-control,
input[type="time"].form-control { cursor: pointer; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(59,130,246,0.35); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: #e2e8f0; color: var(--text); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; color: #fff; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; border-radius: 7px; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 11px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-block { width: 100%; }

.btn-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }

/* ── UPLOAD ZONE ─────────────────────────────── */
.upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #f8fafc;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--blue-light);
}

.upload-icon { font-size: 2.6rem; margin-bottom: 12px; display: block; }
.upload-zone h3 { font-size: 1rem; margin-bottom: 6px; }
.upload-zone p { color: var(--muted); font-size: 0.85rem; }
.upload-zone .browse-link { color: var(--blue); font-weight: 600; cursor: pointer; }
.upload-zone .browse-link:hover { text-decoration: underline; }

/* ── FILE CARDS ──────────────────────────────── */
.file-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

.file-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}

.file-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }

.file-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}

.file-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.file-pages { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }

.file-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.file-controls select { padding: 7px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.84rem; cursor: pointer; outline: none; transition: var(--transition); }
.file-controls select:focus { border-color: var(--blue); }
.file-controls .copies-input { width: 70px; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; text-align: center; outline: none; transition: var(--transition); }
.file-controls .copies-input:focus { border-color: var(--blue); }

.file-subtotal { text-align: right; flex-shrink: 0; }
.file-subtotal .amount { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--blue); }
.file-subtotal .label { font-size: 0.75rem; color: var(--muted); }
.file-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; padding: 4px; border-radius: 6px; transition: var(--transition); margin-left: auto; }
.file-remove:hover { background: #fef2f2; }

.uploading-overlay { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }

/* ── SUMMARY TABLE ───────────────────────────── */
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th { background: var(--bg); font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 14px; text-align: left; }
.summary-table td { padding: 12px 14px; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.summary-table tr:last-child td { border-bottom: none; }

.grand-total-row {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.grand-total-row .label { font-size: 1rem; font-weight: 600; }
.grand-total-row .amount { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--blue); }

/* ── BADGE / STATUS PILLS ─────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-color { background: #eff6ff; color: #1d4ed8; }
.badge-bw { background: #f1f5f9; color: #475569; }
.badge-duplex { background: #f5f3ff; color: #7c3aed; }

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.status-pending   { background: #fff7ed; color: #c2410c; }
.status-confirmed { background: #eff6ff; color: #1d4ed8; }
.status-printing  { background: #f5f3ff; color: #6d28d9; }
.status-ready     { background: #f0fdf4; color: #15803d; }
.status-completed { background: #f8fafc; color: #64748b; }
.status-cancelled { background: #fef2f2; color: #b91c1c; }

.pay-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.pay-paid   { background: #f0fdf4; color: #15803d; }
.pay-unpaid { background: #fff7ed; color: #c2410c; }

/* ── UPI PAYMENT SECTION ─────────────────────── */
.upi-section { text-align: center; padding: 12px 0; }
.upi-qr { width: 220px; height: 220px; border-radius: var(--radius); border: 2px solid var(--border); display: block; margin: 0 auto 16px; }
.upi-id-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.upi-id-text { font-family: monospace; font-size: 1rem; background: var(--bg); padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); }
.upi-copy-btn { background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--muted); transition: var(--transition); }
.upi-copy-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.upi-copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ── ORDER TOKEN / CONFIRMATION ──────────────── */
.confirm-card {
  text-align: center;
  padding: 40px 28px;
}

.token-display {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 32px;
  display: inline-block;
  margin: 18px 0;
}

.token-display .label { font-size: 0.82rem; opacity: 0.7; margin-bottom: 4px; }
.token-display .token { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: 0.08em; color: var(--blue); }

.confirm-meta { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.confirm-meta strong { color: var(--text); }

/* ── STATUS TRACKER ──────────────────────────── */
.tracker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: 28px 0;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  gap: 8px;
}

.tracker-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(-50% + 18px);
  right: calc(50% + 18px);
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.tracker-step:first-child::before { display: none; }

.tracker-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.tracker-step.done .tracker-circle { background: var(--success); color: #fff; }
.tracker-step.done::before { background: var(--success); }
.tracker-step.active .tracker-circle { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }

.tracker-label { font-size: 0.76rem; font-weight: 600; color: var(--muted); text-align: center; }
.tracker-step.done .tracker-label { color: var(--success); }
.tracker-step.active .tracker-label { color: var(--blue); }

/* ── SPINNER / LOADER ─────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner-dark {
  border-color: rgba(59,130,246,0.2);
  border-top-color: var(--blue);
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 14px;
  color: #fff;
  font-size: 1rem;
}

.loading-overlay .big-spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

/* ── ADMIN LAYOUT ─────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.sidebar-logo span { color: var(--blue); }

.sidebar-nav { flex: 1; padding: 16px 10px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}

.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.sidebar-nav a.active { color: #fff; background: var(--blue); }
.sidebar-nav a .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.88rem;
  transition: var(--transition);
}

.sidebar-footer a:hover { color: #fff; background: rgba(255,255,255,0.07); }

.admin-content { flex: 1; padding: 28px; overflow-y: auto; }

.admin-page-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--navy);
}

.admin-page-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }

/* ── STATS CARDS ─────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.stat-icon.blue   { background: #eff6ff; }
.stat-icon.orange { background: #fff7ed; }
.stat-icon.green  { background: #f0fdf4; }
.stat-icon.purple { background: #f5f3ff; }

.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 1.65rem; font-weight: 800; color: var(--text); }

/* ── DATA TABLE ──────────────────────────────── */
.data-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tabs { display: flex; gap: 4px; }
.filter-tab {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
}
.filter-tab:hover { background: var(--bg); color: var(--text); }
.filter-tab.active { background: var(--blue); color: #fff; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 16px;
  text-align: left;
  white-space: nowrap;
}

.data-table td { padding: 13px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

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

/* ── STATUS SELECT (inline) ──────────────────── */
.status-select {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  background: #fff;
}
.status-select:focus { border-color: var(--blue); }

/* ── ADMIN LOGIN ─────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo h1 { font-size: 1.5rem; margin-bottom: 4px; }
.login-logo h1 span { color: var(--blue); }
.login-logo p { color: var(--muted); font-size: 0.88rem; }

.login-error {
  background: #fef2f2;
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  border: 1px solid #fecaca;
}

/* ── ORDER DETAIL ─────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }

.info-item .info-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.info-item .info-value { font-size: 0.95rem; font-weight: 500; color: var(--text); }

.note-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.note-card .note-icon { font-size: 1.3rem; flex-shrink: 0; }
.note-card .note-text { font-size: 0.92rem; color: #92400e; line-height: 1.6; }

.countdown-badge {
  background: #fff7ed;
  color: #c2410c;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── PRICING TABLE ───────────────────────────── */
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th { background: var(--bg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 11px 16px; text-align: left; font-weight: 600; }
.pricing-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.pricing-table tr:last-child td { border-bottom: none; }
.price-input { width: 100px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; outline: none; transition: var(--transition); }
.price-input:focus { border-color: var(--blue); }

/* ── TOAST NOTIFICATIONS ─────────────────────── */
.toast-container { position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.toast-success { background: #14532d; border-left: 4px solid var(--success); }
.toast.toast-error   { background: #7f1d1d; border-left: 4px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── MISC ────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.text-muted { color: var(--muted); }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .gap-2 { gap: 12px; } .align-center { align-items: center; }
.bell-icon { color: var(--warning); }
.hidden { display: none !important; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 0.95rem; }

/* ── PRINT STYLES ─────────────────────────────── */
@media print {
  .admin-sidebar, .topbar, .btn:not(.print-show), .table-toolbar, .no-print { display: none !important; }
  .admin-content { padding: 0; }
  .admin-wrap { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #e2e8f0; margin-bottom: 12px; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { padding: 16px; }
  .wizard-wrap { padding: 20px 14px 32px; }
  .file-card { flex-wrap: wrap; }
  .file-subtotal { margin-left: 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tracker-bar { gap: 0; }
  .tracker-label { font-size: 0.68rem; }
}

@media (max-width: 480px) {
  .page-header h1 { font-size: 1.5rem; }
  .grand-total-row .amount { font-size: 1.4rem; }
  .card { padding: 18px; }
  .data-table th, .data-table td { padding: 10px 10px; font-size: 0.82rem; }
}
