:root {
    /* Color Palette - Neo Brutalism */
    --bg-main: #FBF6E9;      /* Warna Cream Background (sesuai gambar) */
    --bg-card: #FFFFFF;      /* Putih Kertas */
    --black: #000000;        /* Hitam Pekat untuk Border/Text */
    --accent-red: #FF5F5F;   /* Merah Tombol */
    --accent-green: #27C93F; /* Hijau status */
    --accent-yellow: #FFBD2E;
    --gray-light: #F0F0F0;
    
    /* Variables */
    --border: 3px solid var(--black); /* Border Tebal Khas */
    --shadow: 5px 5px 0px var(--black); /* Hard Shadow */
    --shadow-hover: 2px 2px 0px var(--black);
    --radius: 8px;
    
    /* Fonts */
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--black);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    background-image: radial-gradient(#d1ccc0 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%;
    background: var(--bg-main);
    border-bottom: var(--border);
    position: sticky; top: 0; z-index: 100;
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.logo-box {
    width: 40px; height: 40px; background: var(--black); color: white;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.2rem;
}
.nav-brand h1 { font-family: var(--font-head); font-weight: 800; letter-spacing: -1px; font-size: 1.5rem; }
.dot { color: var(--accent-red); }

.menu-btn {
    background: transparent; border: none; font-size: 1.8rem; cursor: pointer;
}

/* --- CONTAINER & LAYOUT --- */
.container {
    max-width: 800px; margin: 0 auto; padding: 40px 20px 80px;
}

.hero-text { text-align: center; margin-bottom: 40px; }
.hero-text h2 { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -1px; }
.hero-text p { color: #555; font-size: 1.1rem; }

/* --- NEO CARD STYLE --- */
.neo-card {
    background: var(--bg-card);
    border: var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    transition: transform 0.2s;
}

.card-top {
    display: flex; align-items: center; gap: 10px; margin-bottom: 25px;
    border-bottom: 2px solid #eee; padding-bottom: 15px;
}
.badge {
    padding: 4px 10px; border-radius: 4px; font-weight: 800; font-size: 0.7rem; color: white; border: 1px solid var(--black);
}
.badge.red { background: var(--accent-red); }
.badge-text { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; }

/* --- FORMS --- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 800; font-size: 0.8rem; margin-bottom: 8px; font-family: var(--font-head);
}

.input-box, .select-box {
    display: flex; align-items: center;
    background: #fff; border: 2px solid var(--black);
    border-radius: 6px; padding: 0 15px; height: 50px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.input-box:focus-within, .select-box:focus-within {
    box-shadow: 4px 4px 0px var(--black); transform: translate(-2px, -2px);
}
.input-box i { font-size: 1.2rem; color: #666; margin-right: 10px; }
.input-box input, .select-box select {
    width: 100%; border: none; background: transparent; font-size: 1rem; font-weight: 600; color: var(--black);
}
.unit { font-family: var(--font-mono); font-size: 0.8rem; color: #888; font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Custom Switch */
.toggle-group { display: flex; flex-direction: column; }
.neo-switch {
    position: relative; display: inline-block; width: 60px; height: 32px;
}
.neo-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #fff; border: 2px solid var(--black);
    transition: .3s; border-radius: 30px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px;
    left: 4px; bottom: 4px; background-color: var(--black);
    transition: .3s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent-green); }
input:checked + .slider:before { transform: translateX(28px); background-color: white; border: 2px solid black; }

/* --- BUTTONS --- */
.btn-neo {
    width: 100%; padding: 18px;
    font-family: var(--font-head); font-weight: 800; font-size: 1rem;
    text-transform: uppercase; cursor: pointer;
    border: var(--border); border-radius: 8px;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: 0.2s; position: relative;
}

.main-btn {
    background: var(--accent-red); color: white;
    box-shadow: var(--shadow);
}
.main-btn:hover {
    transform: translate(2px, 2px); box-shadow: var(--shadow-hover);
}
.main-btn:active { transform: translate(5px, 5px); box-shadow: none; }

.download-btn {
    background: var(--accent-yellow); color: var(--black);
    box-shadow: var(--shadow); margin-top: 20px;
}
.download-btn:hover {
    transform: translate(2px, 2px); box-shadow: var(--shadow-hover);
}

/* --- RESULT AREA --- */
.result-hidden { display: none; margin-top: 30px; animation: slideUp 0.4s ease; }
@keyframes slideUp { from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);} }

.divider {
    text-align: center; font-weight: 800; margin: 20px 0;
    position: relative; color: var(--black);
}
.divider::before, .divider::after {
    content: ''; position: absolute; top: 50%; width: 35%; height: 2px; background: var(--black);
}
.divider::before { left: 0; } .divider::after { right: 0; }

.preview-window {
    border: var(--border); border-radius: 8px; overflow: hidden; background: #fff;
}
.window-bar {
    background: var(--black); padding: 10px 15px; display: flex; align-items: center;
}
.circles { display: flex; gap: 6px; }
.c { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); }
.c.red { background: #FF5F56; } .c.yellow { background: #FFBD2E; } .c.green { background: #27C93F; }
.address-bar {
    flex: 1; text-align: center; color: #fff; font-family: var(--font-mono); font-size: 0.8rem; opacity: 0.7;
}
.img-container img { width: 100%; display: block; }

/* --- DOCS SECTION --- */
.mt-large { margin-top: 50px; }
.card-head-simple { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.icon-box {
    width: 40px; height: 40px; background: var(--bg-main); border: 2px solid var(--black);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border-radius: 6px;
}
.endpoint {
    background: var(--black); color: white; padding: 15px; border-radius: 6px;
    font-family: var(--font-mono); display: flex; gap: 15px; align-items: center; margin-bottom: 20px;
}
.method { background: var(--accent-red); padding: 4px 8px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; color: black; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 20px; }
th { text-align: left; border-bottom: 2px solid var(--black); padding: 10px; }
td { border-bottom: 1px solid #ddd; padding: 10px; }
.tag { padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 0.7rem; border: 1px solid var(--black); }
.tag.yes { background: var(--accent-red); color: white; }
.tag.no { background: #eee; }

.code-block { border: 2px solid var(--black); border-radius: 6px; overflow: hidden; }
.code-header { background: #eee; padding: 8px 15px; font-size: 0.8rem; font-weight: bold; border-bottom: 2px solid var(--black); }
pre { padding: 15px; background: #fff; font-family: var(--font-mono); font-size: 0.85rem; overflow-x: auto; }

/* --- FOOTER & SIDEBAR --- */
.main-footer { text-align: center; margin-top: 50px; font-family: var(--font-mono); font-size: 0.8rem; color: #666; }

.sidebar {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: var(--bg-main); border-left: var(--border); z-index: 200;
    padding: 30px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.active { right: 0; box-shadow: -10px 0 0 rgba(0,0,0,0.1); }
.sidebar-head { display: flex; justify-content: space-between; margin-bottom: 40px; }
.sidebar-head button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.nav-links { list-style: none; }
.nav-links li { margin-bottom: 15px; }
.nav-links a {
    display: flex; align-items: center; gap: 15px; text-decoration: none;
    color: var(--black); font-weight: 700; padding: 12px;
    border: 2px solid transparent; border-radius: 6px; transition: 0.2s;
}
.nav-links a.active, .nav-links a:hover {
    background: white; border-color: var(--black); box-shadow: 4px 4px 0px var(--black);
}

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 150;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.overlay.active { opacity: 1; pointer-events: all; }

.loader {
    width: 20px; height: 20px; border: 3px solid #fff;
    border-bottom-color: transparent; border-radius: 50%;
    display: none; animation: rotation 1s linear infinite;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .container { padding: 20px; }
    .hero-text h2 { font-size: 1.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .neo-card { padding: 20px; }
    .btn-neo { font-size: 0.9rem; }
    .divider::before, .divider::after { width: 25%; }
}