/* Konferensi — stylesheet tanpa build tool. Memakai logical properties agar otomatis cocok untuk RTL (Arab). */
:root {
  --primary: #0f5c4d;
  --primary-600: #0c4b3f;
  --primary-50: #e8f3f0;
  --accent: #c8963e;
  --bg: #f5f6f4;
  --card: #ffffff;
  --text: #1c2523;
  --muted: #5d6b67;
  --line: #e2e6e3;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
[dir="rtl"], .ar, [lang="ar"] { font-family: var(--font-ar); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.container { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }

/* Header */
.topbar { background: var(--primary); color: #fff; }
.topbar .container { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.brand img { height: 36px; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.linkish { color: #e6f2ef; padding: 6px 10px; border-radius: 6px; font-size: .92rem; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.lang { display: flex; gap: 2px; background: rgba(255,255,255,.1); border-radius: 6px; padding: 2px; }
.lang a { padding: 3px 8px; font-size: .8rem; }
.lang a.on { background: #fff; color: var(--primary); }
.menu-toggle { display: none; }

/* Layout manage */
.with-side { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 12px; }
.side h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 8px 6px; }
.side a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: .93rem; }
.side a:hover { background: var(--primary-50); text-decoration: none; }
.side a.active { background: var(--primary); color: #fff; }
main { padding-block: 24px 48px; }

/* Card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }

/* Form */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cfd6d3; border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-50); border-color: var(--primary); }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.error { color: var(--danger); font-size: .85rem; margin-top: 3px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }
.inline-form { display: inline; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.lang-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lang-tabs .ar input, .lang-tabs .ar textarea, textarea.ar, input.ar { direction: rtl; font-family: var(--font-ar); }
.tag { display: inline-block; font-size: .7rem; padding: 1px 6px; border-radius: 4px; background: var(--primary-50); color: var(--primary); font-weight: 700; margin-inline-start: 4px; }

/* Button */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; background: var(--primary); color: #fff; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn.light { background: #fff; color: var(--primary); border-color: #cfd6d3; }
.btn.light:hover { background: var(--primary-50); }
.btn.gold { background: var(--accent); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: .82rem; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }

/* Table */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfa; }
.table tr:hover td { background: #fbfcfb; }
.num { text-align: end !important; font-variant-numeric: tabular-nums; }

/* Badge & alert */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.badge-blue { background: #e0ecff; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-teal { background: #ccfbf1; color: #0f766e; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #eef0ef; color: #4b5552; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .93rem; }
.alert.ok { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.alert.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.alert.info { background: var(--primary-50); color: var(--primary-600); border: 1px solid #cde5df; }
.alert.warn { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }

/* Public */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #0a3d33 100%); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.hero.has-banner { background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.2rem; margin-bottom: .3em; }
.hero .theme { font-size: 1.15rem; opacity: .92; max-width: 780px; }
.hero .meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0 24px; opacity: .95; }
.hero .acr { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 12px; }
.hero .btn.light { border-color: transparent; }
.dates { list-style: none; padding: 0; margin: 0; }
.dates li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.dates li:last-child { border-bottom: 0; }
.dates li.past { color: var(--muted); text-decoration: line-through; }
.fee-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.fee-card b { font-size: 1.15rem; color: var(--primary); }
.prose { white-space: pre-line; }
.conf-list .card { display: flex; gap: 18px; align-items: center; }
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .85rem; background: #fff; }
.auth-box { max-width: 460px; margin: 30px auto; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.timeline li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.files li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.files { list-style: none; padding: 0; margin: 0; }
.review-box { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fcfdfc; }
.score-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.score-row .opts { display: flex; gap: 4px; }
.score-row .opts label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.empty { text-align: center; padding: 30px; color: var(--muted); }
.steps { display: flex; gap: 0; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { flex: 1; min-width: 110px; text-align: center; font-size: .8rem; padding: 8px 4px; border-bottom: 3px solid var(--line); color: var(--muted); }
.steps span.done { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.steps span.now { border-color: var(--accent); color: var(--text); font-weight: 700; }
.pagination { display: flex; gap: 4px; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .85rem; }
.pagination li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }
nav[role=navigation] svg { width: 16px; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); }

@media (max-width: 900px) {
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .side h4 { width: 100%; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .lang-tabs { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .hero h1 { font-size: 1.6rem; }
  .menu-toggle { display: inline-flex; margin-inline-start: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 5px 10px; }
  .nav { display: none; width: 100%; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}
.table td:first-child b, .table td:first-child a b { white-space: nowrap; }
