/* ============================================================
   BAPENDA PAPUA – SIMULASI PAJAK
   Full-Page Split Layout · Dark/Light Mode
   BPX Platform © 2026
   ============================================================ */

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

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* Brand */
  --accent: #FF8C00;
  --accent-lt: #FFB347;
  --accent-dk: #CC5500;
  --accent-glow: rgba(255, 140, 0, .22);

  /* Dark palette (default) */
  --bg-root: #0A1628;
  --bg-sidebar: #0D1F38;
  --bg-panel: #0F2240;
  --bg-card: #132B50;
  --bg-input: #0A1628;
  --bg-surface: #1A3260;
  --border: rgba(255, 255, 255, .08);
  --border-accent: rgba(255, 140, 0, .35);

  --txt-primary: #EFF4FF;
  --txt-secondary: #7A9CC6;
  --txt-muted: #3D618A;

  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #38BDF8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
  --shadow-accent: 0 6px 20px rgba(255, 140, 0, .35);

  --sidebar-w: 512px;
  --transition: .22s cubic-bezier(.4, 0, .2, 1);

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-root: #F0F4F8;
  --bg-sidebar: #1A3260;
  --bg-panel: #E8EDF5;
  --bg-card: #FFFFFF;
  --bg-input: #F5F8FC;
  --bg-surface: #EBF0F8;
  --border: rgba(0, 0, 0, .09);
  --border-accent: rgba(255, 140, 0, .4);

  --txt-primary: #0F2240;
  --txt-secondary: #455A7A;
  --txt-muted: #93A8C0;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .07);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .10);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .13);
}

/* Sidebar always dark regardless of theme */
.sidebar {
  --txt-primary: #EFF4FF;
  --txt-secondary: #7A9CC6;
  --txt-muted: #3D618A;
  --border: rgba(255, 255, 255, .08);
  --bg-input: #081528;
  --bg-surface: #0A1628;
  --border-accent: rgba(255, 140, 0, .35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-root);
  color: var(--txt-primary);
  min-height: 100vh;
  display: flex;
  overflow: scroll;
  transition: background var(--transition), color var(--transition);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 2rem 1.75rem;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

/* Accent line kiri atas */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 60%);
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.brand-name {
  font-size: .95rem;
  font-weight: 800;
  color: #EFF4FF;
  letter-spacing: .01em;
}

.brand-sub {
  font-size: .65rem;
  color: #7A9CC6;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .1rem;
}

/* Hero text */
.sidebar-hero {
  margin-bottom: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7A9CC6;
  margin-bottom: .85rem;
}

.dot-live {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(1.4);
  }
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #EFF4FF;
  margin-bottom: .75rem;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: .82rem;
  color: #7A9CC6;
  line-height: 1.65;
}

/* ── FORM ── */
.tax-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7A9CC6;
}

.field-label .material-icons-round {
  font-size: 14px;
  color: var(--accent);
}

.field-input {
  width: 100%;
  background: #081528;
  border: 1.5px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  color: #EFF4FF;
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 600;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder {
  color: #3D618A;
  font-weight: 400;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

.plate-font {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
}

.select-wrap .field-input {
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #3D618A;
  pointer-events: none;
}

.field-hint {
  font-size: .65rem;
  color: #3D618A;
  margin-top: -.2rem;
}

/* Submit button */
.btn-hitung {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .95rem 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: .5rem;
}

.btn-hitung .material-icons-round {
  font-size: 20px;
}

.btn-hitung:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 140, 0, .4);
}

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

.btn-hitung:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* Spinner inside button */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
  flex-shrink: 0;
}

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

.btn-hitung.loading .btn-spinner {
  display: block;
}

.btn-hitung.loading>span:first-child,
.btn-hitung.loading>span.btn-text {
  display: none;
}

/* Trust row */
.sidebar-trust {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .64rem;
  font-weight: 700;
  color: #3D618A;
  letter-spacing: .05em;
}

.trust-item .material-icons-round {
  font-size: 13px;
  color: var(--accent);
}

/* Theme toggle */
.sidebar-theme {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 1.5rem;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  padding: .55rem .9rem;
  color: #7A9CC6;
  font-family: var(--font-main);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  letter-spacing: .04em;
}

.theme-btn:hover {
  background: rgba(255, 140, 0, .1);
  border-color: var(--border-accent);
  color: var(--accent);
}

.theme-btn .material-icons-round {
  font-size: 16px;
}

/* ============================================================
   MAIN PANEL (kanan)
   ============================================================ */
.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  min-height: 100vh;
  overflow: scroll;
  transition: background var(--transition);
}

/* Top bar */
.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  z-index: 5;
  transition: background var(--transition);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.topbar-title .material-icons-round {
  font-size: 18px;
  color: var(--accent);
}

/* Export buttons */
.export-bar {
  display: flex;
  gap: .65rem;
  align-items: center;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--txt-secondary);
  transition: all var(--transition);
  letter-spacing: .03em;
}

.btn-export .material-icons-round {
  font-size: 16px;
}

.btn-export:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-export-pdf {
  background: linear-gradient(135deg, #C62828 0%, #8B0000 100%);
  border-color: transparent;
  color: white;
}

.btn-export-pdf:hover {
  background: linear-gradient(135deg, #D32F2F 0%, #9B0000 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(198, 40, 40, .35);
}

/* Result container */
.result-container {
  flex: 1;
  padding: 2rem;
  height: calc(100vh - 65px);
  overflow: auto;
  box-sizing: border-box;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 3rem 2rem;
  gap: 1rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}

.empty-icon .material-icons-round {
  font-size: 36px;
  color: var(--txt-muted);
}

.empty-state h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--txt-primary);
  letter-spacing: -.02em;
}

.empty-state p {
  font-size: .875rem;
  color: var(--txt-secondary);
  max-width: 380px;
  line-height: 1.65;
}

.empty-steps {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--txt-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem 1rem;
}

.step span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── RESULT CARD (dari simulasi.php) ── */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: auto;
  animation: slideIn .4s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Result header */
.result-header {
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-nopol {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Plate visual */
.plate-visual {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .15em;
  padding: .4rem 1rem;
  border-radius: var(--radius-sm);
  border: 2.5px solid #E65100;
  background: #FFC107;
  color: #111;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.plate-visual.plate-black {
  background: #212121;
  color: #fff;
  border-color: #555;
}

.plate-visual.plate-yellow {
  background: #FFC107;
  color: #111;
  border-color: #E65100;
}

.plate-visual.plate-red {
  background: #C62828;
  color: #fff;
  border-color: #8B0000;
}

.plate-visual.plate-white {
  background: #FAFAFA;
  color: #111;
  border-color: #9E9E9E;
}

.result-meta h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--txt-primary);
  letter-spacing: -.01em;
}

.result-meta p {
  font-size: .75rem;
  color: var(--txt-secondary);
  margin-top: .2rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.result-meta p .material-icons-round {
  font-size: 13px;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.status-badge .material-icons-round {
  font-size: 15px;
}

.status-badge.lunas {
  background: rgba(34, 197, 94, .15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, .3);
}

.status-badge.telat {
  background: rgba(239, 68, 68, .15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, .3);
}

/* Section header */
.section-hdr {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-hdr .material-icons-round {
  font-size: 15px;
  color: var(--accent);
}

.section-hdr span:last-child {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-item {
  padding: 1rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.info-item:hover {
  background: rgba(255, 140, 0, .04);
}

.info-item:nth-child(3n) {
  border-right: none;
}

.item-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--txt-muted);
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.item-label .material-icons-round {
  font-size: 13px;
  color: var(--accent);
}

.item-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--txt-primary);
}

.item-value.amount {
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
}

.item-value.amount-danger {
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 700;
  color: var(--danger);
}

.item-value.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
}

/* Subtotal bar */
.subtotal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: .5rem;
}

.subtotal-bar .lbl {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.subtotal-bar .val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

/* Total bar */
.total-bar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.total-bar .lbl {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .75);
}

.total-bar .lbl small {
  display: block;
  font-size: .62rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .5);
  margin-top: .2rem;
  letter-spacing: .02em;
  text-transform: none;
}

.total-bar .amt {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* Keterangan section */
.keterangan-section {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.keterangan-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--txt-secondary);
  margin-bottom: .75rem;
}

.keterangan-title .material-icons-round {
  font-size: 15px;
  color: var(--info);
}

.keterangan-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .45rem;
}

.keterangan-num {
  min-width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .05rem;
}

.keterangan-text {
  font-size: .775rem;
  color: var(--txt-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Result actions */
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
}

.mat-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--txt-secondary);
  transition: all var(--transition);
}

.mat-action-btn .material-icons-round {
  font-size: 16px;
}

.mat-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.mat-action-btn.pdf {
  background: linear-gradient(135deg, #C62828 0%, #8B0000 100%);
  border-color: transparent;
  color: white;
}

.mat-action-btn.pdf:hover {
  background: linear-gradient(135deg, #D32F2F 0%, #9B0000 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 18px rgba(198, 40, 40, .35);
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg,
      var(--border) 25%, rgba(255, 255, 255, .06) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.sk-line {
  height: 14px;
  margin: .45rem 0;
}

.sk-line.lg {
  height: 22px;
  width: 55%;
}

.sk-line.sm {
  height: 10px;
  width: 38%;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  z-index: 9999;
  pointer-events: none;
}

.toast-msg {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .8rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--txt-primary);
  font-size: .825rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toastIn .3s cubic-bezier(.4, 0, .2, 1) forwards;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1);
  max-width: 300px;
}

.toast-msg .material-icons-round {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-msg.success {
  border-left: 3px solid var(--success);
}

.toast-msg.success .material-icons-round {
  color: var(--success);
}

.toast-msg.error {
  border-left: 3px solid var(--danger);
}

.toast-msg.error .material-icons-round {
  color: var(--danger);
}

.toast-msg.info {
  border-left: 3px solid var(--info);
}

.toast-msg.info .material-icons-round {
  color: var(--info);
}

.toast-msg.warning {
  border-left: 3px solid var(--warning);
}

.toast-msg.warning .material-icons-round {
  color: var(--warning);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-msg.hide-toast {
  opacity: 0 !important;
  transform: translateY(-10px) scale(.95) !important;
}

/* ── FOCUS ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {

  /* Sembunyikan semua kecuali #printArea */
  body>* {
    display: none !important;
  }

  #printArea {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    padding: 12mm 14mm;
    color: #000;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  }

  .no-print {
    display: none !important;
  }
}

/* Screen: sembunyikan area print */
#printArea {
  display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    overflow: auto;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .main-panel {
    min-height: 50vh;
    overflow: auto;
  }

  .result-container {
    padding: 1.25rem;
    overflow: auto;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-item:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .info-item:nth-child(2n) {
    border-right: none;
  }

  .result-actions {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .empty-steps {
    flex-direction: column;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item {
    border-right: none;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .total-bar .amt {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

            .btn-link {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 12px 24px;
                font-family: Arial, sans-serif;
                font-size: 14px;
                font-weight: bold;
                color: #ffffff !important;
                text-decoration: none !important; /* Menghilangkan garis bawah */
                
                /* Background Biru Gradient */
                background: #93daed;
                background: linear-gradient(159deg, rgba(147, 218, 237, 1) 0%, rgba(255, 255, 255, 0.32) 100%);
                
                border-radius: 6px;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
                transition: all 0.3s ease;
                text-align: center;
            }

            /* Efek saat kursor diarahkan ke tombol */
            .btn-link:hover {
                text-decoration: none !important;
                background: linear-gradient(135deg, #0056b3, #004085); /* Gradient sedikit lebih gelap */
                box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
                transform: translateY(-1px); /* Tombol sedikit terangkat */
            }

