/* =========================================================
   SI Penjualan Online - UI Pro (Plain CSS)
   ========================================================= */
:root{
  --app-bg:#f5f7fb;
  --app-surface:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --muted-2:#64748b;
  --primary:#2563eb;
  --primary-700:#1d4ed8;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;
  --border:#e2e8f0;
  --shadow: 0 10px 25px rgba(2,6,23,.10);
  --shadow-sm: 0 6px 16px rgba(2,6,23,.08);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1150px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:linear-gradient(180deg,#eef2ff 0%, var(--app-bg) 40%, #ffffff 100%);
}
h1,h2,h3,h4{line-height:1.2; letter-spacing:-.02em}
h1{font-size:28px; margin:0}
h2{font-size:22px; margin:0}
h3{font-size:16px; margin:0}
p{line-height:1.6}
a{color:var(--primary); text-decoration:none}
a:hover{color:var(--primary-700); text-decoration:underline}
.container{max-width:var(--container); margin:0 auto; padding:18px 16px}
.section{margin-top:14px}
.grid{display:grid; gap:14px}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width: 980px){ .grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width: 640px){ .grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns:1fr} }

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--border);
}
.topbar__inner{
  max-width:var(--container);
  margin:0 auto;
  padding:12px 16px;
  display:flex; align-items:center; gap:14px;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; color:#0b1220; text-decoration:none}
.brand__logo{
  width:34px; height:34px; border-radius:12px;
  background:radial-gradient(circle at 30% 30%, #60a5fa 0%, #2563eb 60%, #1e40af 100%);
  box-shadow: 0 10px 20px rgba(37,99,235,.25);
}
.nav{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.nav a{color:#0f172a; padding:8px 10px; border-radius:12px; text-decoration:none; font-weight:800}
.nav a:hover{background:#eef2ff; text-decoration:none}
.spacer{flex:1}
.userbar{display:flex; align-items:center; gap:10px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border:1px solid var(--border);
  border-radius:999px; background:#fff; box-shadow:var(--shadow-sm);
}
.pill__dot{width:10px;height:10px;border-radius:999px;background:var(--success)}
.pill__text{font-size:13px;color:var(--muted); font-weight:900}

.card{
  background:var(--app-surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}
.card__body{padding:16px}
.card__footer{padding:14px 16px; border-top:1px solid var(--border); background:linear-gradient(180deg,#fff 0%, #f8fafc 100%)}
.card--soft{background:linear-gradient(180deg,#ffffff 0%, #f8fafc 100%)}

.product{display:flex; flex-direction:column; height:100%}
.product__media{
  height:150px;
  background:linear-gradient(135deg,#eef2ff 0%, #e0f2fe 60%, #ffffff 100%);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.product__media img{max-width:100%; max-height:100%; object-fit:cover}
.product__badge{position:absolute; top:12px; left:12px}
.product__title{font-size:15px; font-weight:900; margin:0}
.product__meta{color:var(--muted); font-size:13px; margin-top:6px}
.price{font-weight:1000}
.muted{color:var(--muted)}
.small{font-size:13px}

.btn{
  appearance:none;
  border:1px solid transparent;
  background:var(--primary);
  color:#fff;
  font-weight:900;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  box-shadow: 0 12px 24px rgba(37,99,235,.18);
}
.btn:hover{background:var(--primary-700); text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn--secondary{background:#0f172a; box-shadow: 0 12px 24px rgba(15,23,42,.18)}
.btn--secondary:hover{background:#0b1220}
.btn--ghost{background:#fff; color:#0f172a; border-color:var(--border); box-shadow: var(--shadow-sm)}
.btn--ghost:hover{background:#f8fafc}
.btn--danger{background:var(--danger); box-shadow: 0 12px 24px rgba(220,38,38,.18)}
.btn--danger:hover{background:#b91c1c}
.btn--sm{padding:8px 10px; border-radius:12px; font-size:13px; font-weight:900}
.btn-group{display:flex; gap:10px; flex-wrap:wrap}

.form{display:grid; gap:12px}
.form__row{display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 720px){.form__row{grid-template-columns:1fr}}
.field{display:grid; gap:7px}
.label{font-weight:900; font-size:13px; color:#0f172a}
.input, select, textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.input:focus, select:focus, textarea:focus{border-color:#93c5fd; box-shadow: 0 0 0 4px rgba(59,130,246,.15)}
.help{font-size:12px; color:var(--muted-2)}
.error{font-size:12px; color:var(--danger); font-weight:800}
hr.sep{border:0; border-top:1px solid var(--border); margin:16px 0}

.alert{border-radius:16px; padding:12px 14px; border:1px solid var(--border); box-shadow: var(--shadow-sm); display:flex; gap:10px; align-items:flex-start}
.alert__icon{width:22px;height:22px;border-radius:10px; display:inline-flex; align-items:center; justify-content:center; font-weight:1000; font-size:14px}
.alert--success{background:#ecfdf5; border-color:#bbf7d0}
.alert--success .alert__icon{background:#16a34a; color:#fff}
.alert--error{background:#fef2f2; border-color:#fecaca}
.alert--error .alert__icon{background:#dc2626; color:#fff}
.alert--info{background:#eff6ff; border-color:#bfdbfe}
.alert--info .alert__icon{background:#2563eb; color:#fff}

.table-wrap{overflow:auto; border-radius:16px; border:1px solid var(--border)}
.table{width:100%; border-collapse:separate; border-spacing:0; min-width:650px; background:#fff}
.table th, .table td{padding:12px 12px; text-align:left; border-bottom:1px solid var(--border)}
.table th{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); background:#f8fafc}
.table tr:last-child td{border-bottom:0}
.table td.right{text-align:right}
.table td.center{text-align:center}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  font-weight:1000; font-size:12px;
  border:1px solid var(--border); background:#fff;
}
.badge--success{border-color:#bbf7d0; background:#ecfdf5; color:#166534}
.badge--warning{border-color:#fde68a; background:#fffbeb; color:#92400e}
.badge--danger{border-color:#fecaca; background:#fef2f2; color:#991b1b}
.badge--info{border-color:#bfdbfe; background:#eff6ff; color:#1e40af}

.pagination{display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end; margin-top:14px}
.page{padding:8px 10px; border:1px solid var(--border); border-radius:12px; background:#fff; font-weight:900; font-size:13px; color:#0f172a; text-decoration:none}
.page:hover{background:#f8fafc; text-decoration:none}
.page.is-active{background:#eef2ff; border-color:#bfdbfe}
.page.is-disabled{opacity:.55; pointer-events:none}

.footer{margin-top:24px; padding:20px 0; color:var(--muted-2); font-size:13px; border-top:1px solid var(--border)}
.kpi{display:grid; gap:14px; grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width: 980px){.kpi{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.kpi{grid-template-columns:1fr}}
.kpi__label{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.12em; font-weight:1000}
.kpi__value{font-size:22px; font-weight:1100; margin-top:6px}

.admin{display:grid; grid-template-columns:260px 1fr; gap:14px}
@media (max-width: 980px){.admin{grid-template-columns:1fr}}
.sidebar{position:sticky; top:84px; align-self:start}
.side-nav{display:grid; gap:8px; padding:14px}
.side-nav a{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--border); background:#fff;
  font-weight:1000; color:#0f172a; text-decoration:none
}
.side-nav a:hover{background:#eef2ff; border-color:#bfdbfe; text-decoration:none}
.side-title{padding:14px 14px 0 14px; font-weight:1100}


/* =========================================================
   Auth pages
   ========================================================= */
.auth{padding:24px 0}
.auth__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:start;
}
.auth__brand{display:flex; gap:12px; align-items:center}
.auth__title{font-weight:800; letter-spacing:-.02em; font-size:18px}
.auth__panel{min-width:0}
.auth__aside{position:sticky; top:88px}
.auth__info .list{margin:12px 0 0 0}
.list{padding-left:18px; margin:0}
.list li{margin:8px 0; line-height:1.5}
.check{display:flex; gap:8px; align-items:center; user-select:none}
.check input{width:16px; height:16px}
code{background:#0b1220; color:#e2e8f0; padding:2px 6px; border-radius:8px; font-size:12px}
@media (max-width: 900px){
  .auth__grid{grid-template-columns: 1fr}
  .auth__aside{position:static}
}
