/* ==========================================================================
   LAPEER AI STUDIO - SOLAR-FUSED VITREOUS FLOW DESIGN SYSTEM
   Attractive, Intuitive & Ultra-Responsive (Mobile to Desktop)
   ========================================================================== */

:root {
  --ms-blue: #0078D4;
  --ms-blue-hover: #005A9E;
  --ms-blue-glow: rgba(0, 120, 212, 0.35);
  --solar-yellow: #FFB900;
  --solar-yellow-glow: rgba(255, 185, 0, 0.4);
  --vitreous-bg: rgba(255, 255, 255, 0.75);
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-border: rgba(255, 255, 255, 0.6);
  --border-subtle: rgba(226, 232, 240, 0.8);
  --bg-gradient: radial-gradient(circle at 0% 0%, #e0eafc 0%, #cfdef3 50%, #e2e8f0 100%);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #0284c7;
  --info-bg: rgba(2, 132, 199, 0.12);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 30px rgba(0, 120, 212, 0.18);
}

.dark {
  --ms-blue: #2899f5;
  --ms-blue-hover: #0078D4;
  --ms-blue-glow: rgba(40, 153, 245, 0.25);
  --solar-yellow: #FFD335;
  --solar-yellow-glow: rgba(255, 211, 53, 0.3);
  --vitreous-bg: rgba(15, 23, 42, 0.75);
  --surface: #0f172a;
  --surface-subtle: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(51, 65, 85, 0.8);
  --bg-gradient: radial-gradient(circle at 0% 0%, #0f172a 0%, #020617 60%, #000000 100%);
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.mono { font-family: var(--font-mono); }

/* Ambient Solar Glow Orb */
.solar-glow-orb {
  position: fixed;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--ms-blue-glow) 0%, rgba(255, 185, 0, 0.15) 50%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25vw, 20vh) scale(1.15); }
  100% { transform: translate(10vw, 50vh) scale(0.9); }
}

/* Vitreous Glass Panels */
.glass-panel {
  background: var(--vitreous-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-top: none;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--ms-blue), #005A9E);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px var(--ms-blue-glow);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.brand-logo-badge:hover {
  transform: rotate(4deg) scale(1.08);
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-title span {
  color: var(--ms-blue);
}

.brand-title .accent-tag {
  color: var(--solar-yellow);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dark Mode Switcher */
.theme-switch {
  width: 56px;
  height: 30px;
  border-radius: 20px;
  background: var(--ms-blue);
  box-shadow: 0 2px 8px var(--ms-blue-glow);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-thumb {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ms-blue);
  font-size: 11px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dark .switch-thumb {
  transform: translateX(26px);
  background: #0f172a;
  color: var(--solar-yellow);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ms-blue), #005A9E);
  color: white;
  box-shadow: 0 4px 14px var(--ms-blue-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.4);
}

.btn-solar {
  background: linear-gradient(135deg, var(--solar-yellow), #e0a300);
  color: #0f172a;
  box-shadow: 0 4px 14px var(--solar-yellow-glow);
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 185, 0, 0.4);
}

.btn-secondary {
  background: var(--vitreous-bg);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ms-blue);
  color: var(--ms-blue);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger-subtle {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-pill {
  border-radius: var(--radius-full);
}

/* ==========================================================================
   WORKFLOW STEPPER (DESKTOP & MOBILE RESPONSIVE)
   ========================================================================== */

.workflow-container {
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 16px;
}

.workflow-stepper {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 24px;
}

.workflow-stepper::-webkit-scrollbar {
  display: none;
}

.step-item {
  flex: 1;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

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

.dark .step-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-item.active {
  background: var(--surface);
  border-color: var(--ms-blue);
  color: var(--ms-blue);
  box-shadow: 0 4px 16px var(--ms-blue-glow);
}

.step-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-item.active .step-icon-badge {
  background: var(--ms-blue);
  color: white;
  transform: scale(1.08);
}

.step-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.step-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STAT / KPI CARDS (ATTRACTIVE HOVER & GLOW)
   ========================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--solar-yellow);
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon-blue { background: rgba(0, 120, 212, 0.15); color: var(--ms-blue); }
.stat-icon-yellow { background: rgba(255, 185, 0, 0.15); color: var(--solar-yellow); }
.stat-icon-green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-icon-red { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   INPUTS & FORMS
   ========================================================================== */

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 3px var(--ms-blue-glow);
}

/* Dropzone */
.dropzone-box {
  border: 2px dashed var(--ms-blue);
  background: rgba(0, 120, 212, 0.04);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropzone-box:hover {
  background: rgba(0, 120, 212, 0.08);
  transform: scale(1.01);
  border-color: var(--solar-yellow);
}

.dropzone-icon {
  font-size: 2.8rem;
  color: var(--ms-blue);
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.dropzone-box:hover .dropzone-icon {
  transform: translateY(-4px) scale(1.1);
  color: var(--solar-yellow);
}

/* Camera Scanner Container */
.scanner-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 340px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto 16px auto;
  border: 2px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 14px;
  right: 14px;
  border: 2px solid var(--solar-yellow);
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.scanner-tag {
  background: rgba(15, 23, 42, 0.85);
  color: var(--solar-yellow);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   TABLES & DATA DISPLAY
   ========================================================================== */

.table-glass-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-table th {
  background: var(--surface-subtle);
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.data-table tr:hover {
  background: rgba(0, 120, 212, 0.04);
}

.data-table td.amount {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Colored Table Row Styles */
.row-header {
  background: #f1f5f9;
  font-weight: 700;
}

.row-subtotal {
  background: #f8fafc;
  font-weight: 700;
}

.row-accent-blue {
  background: #e0f2fe;
  font-weight: 800;
}

.row-accent-yellow {
  background: #fef9c3;
  font-weight: 800;
}

.row-accent-red {
  background: #fee2e2;
  font-weight: 800;
}

/* ==========================================================================
   DARK MODE OVERRIDES:
   All colored/light background rows MUST use DARK GREY font in Dark Mode
   ========================================================================== */

.dark .data-table tr[style*="background"] td,
.dark .data-table tr[style*="background"] th,
.dark .data-table tr[style*="background"] code,
.dark .data-table tr[style*="background"] span,
.dark .data-table tr[style*="background"] strong,
.dark .data-table tr[style*="background"] em,
.dark .data-table tr.row-header td,
.dark .data-table tr.row-subtotal td,
.dark .data-table tr.row-accent-blue td,
.dark .data-table tr.row-accent-yellow td,
.dark .data-table tr.row-accent-red td,
.dark .data-table tr.row-header th,
.dark .data-table tr.row-subtotal th,
.dark .data-table tr.row-accent-blue th,
.dark .data-table tr.row-accent-yellow th,
.dark .data-table tr.row-accent-red th,
.dark .data-table tr.row-header code,
.dark .data-table tr.row-subtotal code,
.dark .data-table tr.row-accent-blue code,
.dark .data-table tr.row-accent-yellow code,
.dark .data-table tr.row-accent-red code {
  color: #1e293b !important; /* Dark Grey / Slate 800 */
}

.dark .data-table tr[style*="background"] code,
.dark .data-table tr.row-header code,
.dark .data-table tr.row-subtotal code,
.dark .data-table tr.row-accent-blue code,
.dark .data-table tr.row-accent-yellow code,
.dark .data-table tr.row-accent-red code {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-solar   { background: rgba(255, 185, 0, 0.18); color: #d97706; }

/* Tax Alert Callout */
.callout-tax {
  background: var(--warning-bg);
  border-left: 4px solid var(--solar-yellow);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 20px;
}

.callout-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark .callout-title {
  color: #fcd34d;
}

.callout-desc {
  font-size: 0.8rem;
  color: var(--text-main);
  margin-top: 4px;
}

/* ==========================================================================
   PRINT READY CANVAS (A4 SHEET)
   ========================================================================== */

.print-canvas-wrapper {
  background: rgba(15, 23, 42, 0.2);
  padding: 30px 10px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.a4-sheet {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff !important;
  color: #0f172a !important;
  margin: 0 auto 30px auto;
  padding: 18mm 18mm 18mm 18mm;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  position: relative;
}

/* Sheet Kop */
.sheet-kop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2.5px solid #0078D4;
  margin-bottom: 16px;
}

.sheet-logo-frame {
  width: 75px;
  height: 75px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.sheet-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sheet-comp-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0078D4;
  text-transform: uppercase;
  line-height: 1.2;
}

.sheet-comp-addr {
  font-size: 0.78rem;
  color: #334155;
  margin-top: 2px;
}

.sheet-comp-contact {
  font-size: 0.75rem;
  color: #64748b;
}

.sheet-comp-tax {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0078D4;
}

.sheet-doc-header {
  text-align: center;
  margin-bottom: 16px;
}

.sheet-doc-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0078D4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sheet-doc-period {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.sheet-doc-currency {
  font-size: 0.72rem;
  font-style: italic;
  color: #64748b;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.sheet-table th, .sheet-table td {
  padding: 5px 8px;
}

.sheet-table thead th {
  background: #f1f5f9;
  color: #0078D4;
  font-weight: 700;
  border-top: 1px solid #0078D4;
  border-bottom: 1px solid #0078D4;
  text-align: right;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.sheet-table thead th.left { text-align: left; }
.sheet-table thead th.center { text-align: center; }

.sheet-table td.code { font-family: var(--font-mono); font-size: 0.72rem; color: #64748b; width: 75px; }
.sheet-table td.name { text-align: left; }
.sheet-table td.note { text-align: center; font-size: 0.72rem; color: #64748b; width: 35px; }
.sheet-table td.amount { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; width: 135px; }

.sheet-sec-row td {
  background: #e2e8f0;
  font-weight: 700;
  color: #0078D4;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.sheet-sub-row td {
  font-weight: 700;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;
}

.sheet-tot-row td {
  font-weight: 800;
  background: #f1f5f9;
  border-top: 1px solid #0f172a;
  border-bottom: 1px solid #0f172a;
  color: #0078D4;
}

.sheet-grd-row td {
  font-weight: 800;
  background: #fef9c3;
  border-top: 1px solid #0f172a;
  border-bottom: 3px double #0f172a;
  color: #0078D4;
  font-size: 0.85rem;
}

.sheet-tax-due td {
  font-weight: 800;
  background: #fee2e2;
  border-top: 1px solid #991b1b;
  border-bottom: 3px double #991b1b;
  color: #991b1b;
}

.sheet-signature-section {
  margin-top: 20px;
  page-break-inside: avoid;
}

.sheet-sign-date {
  text-align: right;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.sheet-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  text-align: center;
}

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

.sheet-sign-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 45px;
}

.sheet-sign-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #0f172a;
  padding-bottom: 2px;
  width: 80%;
}

.sheet-sign-job {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 3px;
}

/* ==========================================================================
   FOOTER & GLOWING BRANDING
   ========================================================================== */

.app-footer {
  margin-top: 40px;
  padding: 24px 20px 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 600;
  line-height: 1.6;
}

/* Pulsing Red Heart Animation */
.heart-pulse {
  color: #ef4444;
  display: inline-block;
  animation: heartPulse 1.2s infinite ease-in-out;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.7));
  margin: 0 4px;
}

@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.35);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.35);
  }
  70% {
    transform: scale(1);
  }
}

/* Glowing Cyan Hover Effect */
.footer-link-glow {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.footer-link-glow:hover {
  color: #00f0ff !important;
  text-shadow: 0 0 8px #00f0ff, 0 0 18px rgba(0, 240, 255, 0.85), 0 0 30px rgba(0, 240, 255, 0.6);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (SMARTPHONE / HANDPHONE & TABLETS)
   ========================================================================== */

@media (max-width: 768px) {
  .app-navbar {
    padding: 10px 14px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-tagline {
    display: none;
  }

  .workflow-container {
    padding: 0 10px;
    margin: 12px auto;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .scanner-container {
    height: 260px;
  }

  .glass-panel {
    padding: 16px !important;
  }

  .a4-sheet {
    transform: scale(0.9);
    transform-origin: top center;
    margin-bottom: -40px;
  }
}

/* ==========================================================================
   PRINT MEDIA RULES (CTRL + P / A4 EXPORT)
   ========================================================================== */

@media print {
  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-navbar,
  .workflow-stepper,
  .no-print,
  .solar-glow-orb,
  .btn,
  .stat-grid,
  .theme-switch {
    display: none !important;
  }

  .workflow-container,
  .print-canvas-wrapper {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .a4-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 10mm 12mm !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    page-break-after: always !important;
    transform: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 8mm;
  }
}
