/* ============================================================
   Auto-Print Xerox — Premium Dark Theme
   Google Font: Outfit (loaded via PHP header include)
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-body:      #060b18;
  --bg-card:      rgba(13, 17, 33, 0.82);
  --bg-card-solid:#0d1121;
  --bg-sidebar:   #080d1c;

  --accent:       #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dark:  #7c3aed;
  --accent-glow:  rgba(139, 92, 246, 0.35);

  --success:      #22c55e;
  --success-bg:   rgba(34, 197, 94, 0.12);
  --warning:      #f59e0b;
  --warning-bg:   rgba(245, 158, 11, 0.12);
  --danger:       #ef4444;
  --danger-bg:    rgba(239, 68, 68, 0.12);
  --info:         #38bdf8;
  --info-bg:      rgba(56, 189, 248, 0.12);

  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;

  --border:       rgba(148, 163, 184, 0.1);
  --border-accent:rgba(139, 92, 246, 0.3);

  --shadow:       0 25px 50px rgba(0, 0, 0, 0.5);
  --shadow-sm:    0 4px 20px rgba(0, 0, 0, 0.3);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;

  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; }

/* ── Animated Mesh Background ──────────────────────────────── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
    var(--bg-body);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
  100% { background-position: 10% 10%, 90% 90%, 55% 45%; }
}

/* ── Glass Card ────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, 0.08);
}

/* ── Brand Header ──────────────────────────────────────────── */
.brand-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Step Indicator ────────────────────────────────────────── */
.steps-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem auto 2rem;
  max-width: 500px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
  z-index: 0;
  transition: var(--transition);
}

.step-item.done:not(:last-child)::after,
.step-item.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--accent), var(--border));
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card-solid);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-item.active .step-circle {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 0 20px var(--accent-glow);
}

.step-item.done .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.step-item.active .step-label { color: var(--accent-light); }
.step-item.done .step-label   { color: var(--success); }

/* ── Upload Drop Zone ──────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(139, 92, 246, 0.03);
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.drop-zone-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.drop-zone-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.file-types {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.file-type-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* File Preview */
.file-preview-card {
  display: none;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  align-items: center;
  gap: 1rem;
}

.file-preview-card.show { display: flex; }

.file-preview-icon { font-size: 2rem; }

.file-preview-name {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
}

.file-preview-size {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.file-remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: var(--transition);
}

.file-remove-btn:hover { background: var(--danger-bg); }

/* ── Options Page ──────────────────────────────────────────── */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .options-grid { grid-template-columns: 1fr; }
}

.option-group label.option-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.option-btn-group {
  display: flex;
  gap: 0.5rem;
}

.opt-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.opt-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.08);
}

.opt-btn.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(139, 92, 246, 0.15));
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* Number Input */
.number-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.number-input-wrap button {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.number-input-wrap button:hover { background: rgba(139, 92, 246, 0.2); }

.number-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem;
  outline: none;
  -moz-appearance: textfield;
}

.number-input-wrap input::-webkit-outer-spin-button,
.number-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Price Summary Card */
.price-summary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.price-row .label { color: var(--text-muted); }
.price-row .value { font-weight: 600; }

.price-total {
  border-top: 1px solid var(--border-accent);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.1rem;
}

.price-total .label { font-weight: 700; color: var(--text); }

.price-total .value {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Payment Card ──────────────────────────────────────────── */
.payment-demo-card {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.payment-demo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 50%;
}

.payment-demo-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 50%;
}

.payment-demo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}

.payment-demo-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
}

.payment-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.8rem;
  position: relative;
  z-index: 1;
}

.demo-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Order Summary */
.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.order-summary-row:last-child { border-bottom: none; }
.order-summary-row .key { color: var(--text-muted); }
.order-summary-row .val { font-weight: 600; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-glow {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border: none;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: inherit;
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: var(--transition);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-glow:hover::before { opacity: 1; }

.btn-glow:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669, var(--success));
  border: none;
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* ── Status Badges ─────────────────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending   { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-processing{ background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(56,189,248,0.3); }
.badge-printed   { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.badge-failed    { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.badge-paid      { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }

/* ── Success Page ──────────────────────────────────────────── */
.success-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #059669, var(--success));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.job-id-display {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.job-id-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.job-id-value { font-size: 1.2rem; font-weight: 800; color: var(--accent-light); letter-spacing: 2px; margin-top: 0.3rem; font-family: monospace; }

/* ── Admin Sidebar Layout ──────────────────────────────────── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.15rem;
}

.sidebar-link:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(139,92,246,0.12));
  color: var(--accent-light);
  border-left: 3px solid var(--accent);
}

.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: rgba(8, 13, 28, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.admin-content { padding: 1.5rem; flex: 1; }

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.purple { background: rgba(139,92,246,0.15); }
.stat-icon.amber  { background: rgba(245,158,11,0.15); }
.stat-icon.blue   { background: rgba(56,189,248,0.15); }
.stat-icon.green  { background: rgba(34,197,94,0.15); }
.stat-icon.red    { background: rgba(239,68,68,0.15); }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Data Table ────────────────────────────────────────────── */
.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.data-table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.data-table-title {
  font-size: 1rem;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

table.ap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ap-table th {
  background: rgba(0,0,0,0.2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.ap-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

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

.job-id-cell {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.filename-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Form Inputs (Admin) ───────────────────────────────────── */
.form-control-ap {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-control-ap:focus {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.form-control-ap::placeholder { color: var(--text-dim); }

/* ── Admin Login ───────────────────────────────────────────── */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

/* ── Alert Boxes ───────────────────────────────────────────── */
.alert-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error   { background: var(--danger-bg);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-success { background: var(--success-bg); border: 1px solid rgba(34,197,94,0.3);  color: #86efac; }
.alert-info    { background: var(--info-bg);    border: 1px solid rgba(56,189,248,0.3); color: #7dd3fc; }

/* ── Detail View ───────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-item {}
.detail-key   { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.25rem; }
.detail-value { font-weight: 600; font-size: 0.95rem; }

/* ── Misc ──────────────────────────────────────────────────── */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.text-accent { color: var(--accent-light); }
.text-muted  { color: var(--text-muted); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }

  .brand-header { padding: 1.5rem 0 1rem; }
  .steps-wrapper { gap: 0; }
  .step-label { display: none; }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }

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

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

/* ── Print Status Timeline (view_job) ──────────────────────── */
.status-timeline {
  display: flex;
  gap: 0;
  margin: 1rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 80px;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  position: relative;
  z-index: 1;
}

.timeline-step.done .timeline-dot { border-color: var(--success); background: var(--success); }
.timeline-step.active .timeline-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.timeline-step.failed .timeline-dot { border-color: var(--danger); background: var(--danger); }

.timeline-label { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); text-align: center; }
.timeline-step.done .timeline-label   { color: var(--success); }
.timeline-step.active .timeline-label { color: var(--accent-light); }
.timeline-step.failed .timeline-label { color: var(--danger); }

/* ── Filter Tabs ───────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.filter-tab.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.page-link {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.page-link:hover, .page-link.active {
  border-color: var(--accent);
  background: rgba(139,92,246,0.15);
  color: var(--accent-light);
}

/* ── Input Group Search ────────────────────────────────────── */
.search-wrap {
  position: relative;
}

.search-wrap .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-wrap input {
  padding-left: 2.2rem;
  width: 220px;
}
