@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css');

/* ===== Reset ===== */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; letter-spacing: -0.05em; }
html { font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif; font-weight: 400; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: 500; }
b, strong, th { font-weight: 500; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: transparent; }
ul, ol { list-style: none; }
table { border-collapse: collapse; text-indent: 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
i[class^="ph"] { line-height: 1; }

/* ===== Komponen ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: 100px; border: 1px solid var(--btn, #000);
    background: var(--btn, #000); color: var(--btn-text, #fff);
    padding: .75rem 1.5rem; font-size: .875rem; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .8; }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: 100px; border: 1px solid currentColor; background: transparent;
    padding: .625rem 1.25rem; font-size: .875rem; cursor: pointer; transition: opacity .15s;
}
.btn-ghost:hover { opacity: .6; }
.card { border-radius: 20px; border: 1px solid rgb(0 0 0 / .12); background: #fff; padding: 1.5rem; color: #000; }
.dark .card { background: #0a0a0a; border-color: rgb(255 255 255 / .15); color: #fff; }
.label { display: block; margin-bottom: .25rem; font-size: .875rem; }
.input {
    width: 100%; border-radius: 14px; border: 1px solid rgb(0 0 0 / .25); background: #fff;
    color: #000; padding: .75rem 1rem; font-size: .875rem; outline: none;
}
.input:focus { border-color: #000; }
.dark .input { background: #111; color: #fff; border-color: rgb(255 255 255 / .3); }
.badge { display: inline-block; border-radius: 100px; border: 1px solid currentColor; padding: .125rem .625rem; font-size: .75rem; }
.nav-link { display: flex; align-items: center; gap: .5rem; border-radius: 12px; padding: .5rem .75rem; transition: background .15s; }
a.nav-link:hover, .nav-link.active { background: rgb(0 0 0 / .06); }
.nav-link.disabled { opacity: .35; cursor: not-allowed; }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: #000; }

/* ===== Utilitas ===== */
.bg-white { background: #fff; }
.dark .dark\:bg-black { background: #000; }
.text-black { color: #000; }
.dark .dark\:text-white { color: #fff; }
.text-black\/50 { color: rgb(0 0 0 / .5); }
.text-black\/60 { color: rgb(0 0 0 / .6); }
.opacity-60 { opacity: .6; }

.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-top { vertical-align: top; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-\[720px\] { min-width: 720px; }
.max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; } .max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.p-0 { padding: 0; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }

.text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; } .text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; } .text-5xl { font-size: 3rem; line-height: 1; }
.text-left { text-align: left; } .text-center { text-align: center; }
.underline { text-decoration: underline; }
.break-all { word-break: break-all; }
.overflow-x-auto { overflow-x: auto; }

.border { border: 1px solid rgb(0 0 0 / .12); }
.border-b { border-bottom: 1px solid rgb(0 0 0 / .1); }
.border-black { border-color: #000; }
.border-black\/10 { border-color: rgb(0 0 0 / .1); }
.border-black\/20 { border-color: rgb(0 0 0 / .2); }
.rounded-\[14px\] { border-radius: 14px; }

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:p-8 { padding: 2rem; }
    .md\:shrink-0 { flex-shrink: 0; }
    .md\:w-64 { width: 16rem; }
}

/* ===== Tahap 2: tambahan ===== */
[hidden] { display: none !important; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-size: 1.05rem; }
.section-title::-webkit-details-marker { display: none; }
.section-title i { margin-right: .5rem; }
.hint { margin-top: .25rem; font-size: .75rem; color: rgb(0 0 0 / .5); }
textarea.input { resize: vertical; }
select.input { appearance: auto; }
.color-input { width: 4rem; height: 2.5rem; padding: 0; border: 1px solid rgb(0 0 0 / .25); border-radius: 12px; background: #fff; cursor: pointer; }
.thumbs { display: flex; flex-wrap: wrap; gap: .75rem; }
.thumb { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; cursor: pointer; }
.thumb img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 12px; border: 1px solid rgb(0 0 0 / .12); }
.table-img { width: 3rem; height: 3rem; flex-shrink: 0; object-fit: cover; border-radius: 10px; border: 1px solid rgb(0 0 0 / .12); }
.table-img-empty { display: inline-flex; align-items: center; justify-content: center; color: rgb(0 0 0 / .35); }
.output { white-space: pre-wrap; word-break: break-word; max-height: 24rem; overflow: auto; border-radius: 14px; background: #f4f4f4; color: #000; padding: 1rem; font-size: .75rem; }
details > summary { outline: none; }
.btn:disabled, .btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

.inline-flex { display: inline-flex; }
.min-w-0 { min-width: 0; }
.mr-4 { margin-right: 1rem; }
.pr-4 { padding-right: 1rem; }
.mb-3 { margin-bottom: .75rem; }
.gap-1 { gap: .25rem; }
.line-through { text-decoration: line-through; }
.min-w-\[480px\] { min-width: 480px; }
.border-black\/15 { border-color: rgb(0 0 0 / .15); }
@media (min-width: 768px) {
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}
.p-3 { padding: .75rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
