/* Font dan style dasar tombol */
.button {
  font-family: 'Press Start 2P', cursive; /* font pixel modern */
  background-color: #282828; /* gelap */
  color: #39ff14; /* neon green */
  border: 3px solid #39ff14;
  padding: 12px 24px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 6px; /* sedikit membulat */
  cursor: pointer;
  box-shadow: 0 0 6px #39ff14;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Efek hover yang memberi glow */
.button:hover {
  background-color: #39ff14;
  color: #282828;
  box-shadow: 0 0 20px #39ff14, 0 0 30px #39ff14;
  transform: scale(1.1);
}

/* Efek pixel grid halus di background */
.button::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  border-radius: 6px;
  background-size: 8px 8px;
  background-image:
    linear-gradient(to right, rgba(57, 255, 20, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57, 255, 20, 0.15) 1px, transparent 1px);
}

.button span {
  position: relative;
  z-index: 2;
}
@keyframes gradientBackground {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

html {
  scroll-behavior: smooth;
}

/* --- Loading Screen --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--container-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px; /* Ukuran spinner sedikit lebih besar */
    height: 60px;
    border: 6px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; /* Animasi spin lebih dinamis */
    margin: 0 auto 25px;
}

.loading-text {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.5px; /* Spasi huruf sedikit */
}

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

/* --- Hamburger Menu Button --- */
.menu-btn {
  position: fixed;
  left: 25px; /* Posisi sedikit masuk */
  top: 25px;
  z-index: 1000;
  cursor: pointer;
  background: var(--container-bg);
  padding: 14px; /* Padding lebih besar */
  border-radius: 10px; /* Border radius lebih lembut */
  box-shadow: 0 4px 15px var(--container-shadow); /* Bayangan lebih jelas */
  display: none;
  transition: all 0.3s ease;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--item-hover-shadow);
}

.menu-btn .bar {
  width: 28px; /* Bar lebih lebar */
  height: 4px; /* Bar lebih tebal */
  background: var(--primary-color);
  margin: 5px 0; /* Jarak antar bar */
  border-radius: 2px;
  transition: 0.3s ease;
}

/* --- Category Panel (Sidebar) --- */
.category-panel {
  position: fixed;
  left: -320px; /* Lebar panel sedikit lebih besar */
  top: 0;
  width: 300px;
  height: 100%;
  background: var(--container-bg);
  box-shadow: 4px 0 10px var(--container-shadow);
  transition: left 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Transisi muncul lebih bouncing */
  z-index: 9999;
  overflow-y: auto;
  padding-bottom: 20px; /* Padding bawah untuk scroll */
}

.category-panel.active {
  left: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px; /* Padding lebih besar */
  border-bottom: 1px solid var(--item-border);
  background: var(--primary-color); /* Header dengan warna primary */
  color: white;
}

.panel-header h3 {
  color: white; /* Warna teks putih */
  margin: 0;
  font-size: 22px; /* Ukuran judul lebih besar */
  font-weight: 700;
}

.close-btn {
  font-size: 28px; /* Ukuran tombol close lebih besar */
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

.category-list {
  padding: 20px;
}

.category-link {
  display: block;
  padding: 15px 20px; /* Padding lebih besar */
  margin: 10px 0; /* Jarak antar link */
  border-radius: 8px; /* Border radius lebih lembut */
  color: var(--text-color);
  text-decoration: none;
  background: var(--description-bg);
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(8px); /* Efek slide */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Background Waves --- */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%; /* Tinggi wave sedikit lebih besar */
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.wave {
    position: absolute;
    width: 250%; /* Lebar wave lebih besar */
    height: 100%;
    background: var(--wave-color-1);
    opacity: 0.7; /* Opacity sedikit lebih rendah */
    transform: translateY(15px);
    animation: waveMove 8s linear infinite alternate-reverse; /* Animasi wave lebih lambat, linear dan reverse */
    border-radius: 45% 55% 50% 50% / 60% 40% 60% 40%; /* Bentuk gelombang yang lebih organik */
}

.wave:nth-child(2) {
    background: var(--wave-color-2);
    height: 130%;
    animation-duration: 10s;
    animation-delay: -2s; /* Delay untuk variasi */
    border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
}

.wave:nth-child(3) {
    background: var(--wave-color-3);
    height: 160%;
    animation-duration: 12s;
    animation-delay: -4s;
    border-radius: 50% 50% 45% 55% / 65% 35% 65% 35%;
}

@keyframes waveMove {
    0% { transform: translateX(-15%) translateY(15px) rotate(0deg); }
    100% { transform: translateX(15%) translateY(-15px) rotate(5deg); } /* Sedikit rotasi */
}

/* --- Main Container & Headings --- */
.container {
    max-width: 900px; /* Max width sedikit lebih besar */
    margin: 0 auto;
    padding: 30px; /* Padding lebih besar */
    background: var(--container-bg);
    border-radius: 12px; /* Border radius lebih lembut */
    box-shadow: 0 6px 20px var(--container-shadow); /* Bayangan lebih besar dan lembut */
}

h1 {
    font-size: 34px; /* Ukuran judul lebih besar */
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800; /* Lebih tebal */
    letter-spacing: -0.5px; /* Spasi huruf sedikit negatif */
}

/* --- Changelog Button --- */
.changelog-btn-container {
    text-align: center;
    margin: 20px 0 35px; /* Jarak lebih besar */
}

.changelog-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px; /* Lebih bulat */
    padding: 14px 30px; /* Padding lebih besar */
    font-size: 17px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transisi bouncing */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.changelog-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-4px) scale(1.02); /* Efek melayang dan sedikit membesar */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.notification-badge {
    background: #ff6b81; /* Warna merah muda yang lebih menarik */
    color: white;
    border-radius: 50%;
    width: 26px; /* Ukuran badge lebih besar */
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    margin-left: 10px;
    animation: pulse 1.5s infinite; /* Animasi denyutan */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Changelog Popup --- */
.changelog-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Background overlay lebih gelap */
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease; /* Animasi fade in */
    backdrop-filter: blur(5px); /* Efek blur pada background */
}

.changelog-popup.active {
    display: flex;
}

.popup-content {
    background: var(--container-bg);
    border-radius: 16px; /* Border radius lebih besar */
    width: 90%;
    max-width: 600px; /* Max width lebih besar */
    max-height: 85vh; /* Max height sedikit lebih besar */
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9); /* Animasi muncul dari kecil */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.changelog-popup.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    padding: 20px 28px; /* Padding lebih besar */
    border-bottom: 1px solid var(--item-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-top-left-radius: 16px; /* Border radius mengikuti content */
    border-top-right-radius: 16px;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.close-popup {
    font-size: 30px; /* Ukuran tombol close lebih besar */
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease;
    padding: 5px;
}

.close-popup:hover {
    transform: scale(1.15) rotate(5deg); /* Efek sedikit berputar */
}

.popup-body {
    padding: 25px; /* Padding lebih besar */
    overflow-y: auto;
    flex-grow: 1;
}

.changelog-item {
    padding: 18px 0; /* Padding lebih besar */
    border-bottom: 1px solid var(--item-border);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

.changelog-updates {
    padding-left: 25px; /* Indentasi lebih besar */
    list-style-type: '— '; /* Bullet point kustom */
}

.changelog-updates li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-color);
}

.popup-footer {
    padding: 18px; /* Padding lebih besar */
    border-top: 1px solid var(--item-border);
    text-align: center;
    background: var(--description-bg);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

#markAsRead {
    padding: 12px 25px; /* Padding lebih besar */
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px; /* Border radius lebih lembut */
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

#markAsRead:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Search Container --- */
.search-container {
  position: relative;
  margin: 30px auto; /* Margin lebih besar */
  max-width: 600px; /* Max width lebih besar */
}

#search-input {
  width: 100%;
  padding: 14px 25px; /* Padding lebih besar */
  padding-left: 50px; /* Padding kiri untuk ikon */
  border: 2px solid var(--item-border);
  border-radius: 30px; /* Lebih bulat */
  font-size: 17px;
  background: var(--container-bg);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2); /* Efek shadow saat fokus */
}

.search-container i {
  position: absolute;
  left: 20px; /* Posisi ikon */
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.8;
  font-size: 18px;
}

/* --- API Category --- */
.api-category {
    margin-bottom: 40px; /* Jarak antar kategori lebih besar */
}

.api-category h2 {
    font-size: 28px; /* Ukuran judul kategori lebih besar */
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color); /* Border bawah lebih tebal */
    padding-bottom: 8px;
    font-weight: 700;
    text-align: left;
    position: relative;
}

.api-category h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px; /* Garis bawah yang lebih pendek */
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.api-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Jarak antar item API lebih besar */
}

.api-item {
    background: var(--container-bg);
    border: 1px solid var(--item-border);
    border-radius: 10px; /* Border radius lebih lembut */
    padding: 25px; /* Padding lebih besar */
    box-shadow: 0 3px 10px var(--container-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative; /* Untuk status badge */
}

.api-item:hover {
    transform: translateY(-7px); /* Efek melayang lebih tinggi */
    box-shadow: 0 6px 18px var(--item-hover-shadow);
}

.api-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    flex-wrap: wrap; /* Mengatasi overflow pada layar kecil */
}

.api-method {
    font-size: 15px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: #fff;
    min-width: 70px; /* Lebar minimum untuk konsistensi */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Status Badge --- */
.api-status-badge {
    font-size: 13px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px; /* Lebih bulat */
    margin-left: auto; /* Pindah ke kanan */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-status-badge.online {
    background-color: #4CAF50; /* Hijau yang lebih cerah */
    color: #fff;
}

.api-status-badge.offline {
    background-color: #F44336; /* Merah yang lebih cerah */
    color: #fff;
}

.api-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    flex-grow: 1; /* Agar judul memenuhi sisa ruang */
}

.api-title:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary-color); /* Warna underline */
}

.api-description {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--description-bg);
    border-left: 5px solid var(--primary-color); /* Border kiri lebih tebal */
    border-radius: 6px;
    display: none;
    line-height: 1.8;
}

.api-description p {
    margin: 0;
    font-size: 15px;
    color: var(--text-color);
}

/* --- API Buttons Container --- */
.api-button-container {
    display: flex;
    gap: 10px; /* Jarak antar tombol */
    margin-top: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Sejajarkan ke kiri */
    width: 100%;
}

.api-description button {
    padding: 12px 22px; /* Padding lebih besar */
    border: none;
    border-radius: 8px; /* Border radius lebih lembut */
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-description button:first-child { /* Tombol "Try It" */
    background-color: var(--primary-color);
    color: white;
}

.api-description button:last-child { /* Tombol "Lihat Response" */
    background-color: #6c757d; /* Abu-abu netral */
    color: white;
}

.api-description button i {
    font-size: 15px;
    margin-right: 8px;
}

.api-description button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.api-description button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- API Modal Styles --- */
.api-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Background overlay lebih gelap */
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
    backdrop-filter: blur(8px); /* Blur lebih kuat */
}

.api-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--container-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 900px; /* Max width modal lebih besar */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px) scale(0.95); /* Animasi muncul dari atas dan sedikit mengecil */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.api-modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--item-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.close-modal {
    font-size: 30px;
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease;
    padding: 5px;
}

.close-modal:hover {
    transform: scale(1.15) rotate(5deg);
}

.modal-body {
    padding: 30px; /* Padding lebih besar */
    overflow-y: auto;
    flex-grow: 1;
}

/* --- API Tester Controls --- */
.tester-controls {
    display: grid;
    grid-template-columns: 140px 1fr auto; /* Kolom method lebih lebar */
    gap: 15px; /* Jarak antar elemen */
    margin-bottom: 30px;
    align-items: center;
}

.tester-method {
    padding: 14px 16px; /* Padding lebih besar */
    border: 1px solid var(--item-border);
    border-radius: 10px; /* Border radius lebih lembut */
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
    font-weight: 500;
}

.tester-url {
    padding: 14px 20px;
    border: 1px solid var(--item-border);
    border-radius: 10px;
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 15px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tester-url:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.send-btn {
    padding: 14px 28px; /* Padding lebih besar */
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.25);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.15);
}

/* --- Response Container --- */
.response-container {
    border: 1px solid var(--item-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--container-bg);
    box-shadow: 0 2px 10px var(--container-shadow);
}

.response-meta {
    padding: 15px 20px; /* Padding lebih besar */
    background: var(--description-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--item-border);
}

.response-status {
    padding: 7px 14px;
    border-radius: 25px; /* Lebih bulat */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-success {
    background: #e6ffe6; /* Hijau muda */
    color: #28a745;
}

.status-error {
    background: #ffe6e6; /* Merah muda */
    color: #dc3545;
}

.response-time {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
}

.response-output {
    padding: 25px; /* Padding lebih besar */
    min-height: 250px;
    max-height: 55vh; /* Max height sedikit lebih besar */
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 14.5px; /* Ukuran font sedikit lebih besar */
    line-height: 1.7;
    color: var(--text-color);
}

/* --- Image Response --- */
.image-response {
    text-align: center;
    margin: 20px 0;
}

.api-image-response {
    max-width: 100%;
    max-height: 450px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--item-border);
}

.download-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-weight: 500;
}

.download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

/* --- Parameter Input --- */
.params-container {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.param-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.param-input label {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 500;
}

.param-input input {
    padding: 12px;
    border: 1px solid var(--item-border);
    border-radius: 8px;
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.param-input input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

/* --- Example Response & Syntax Highlighting --- */
.api-response {
    margin: 20px 0;
    background: var(--endpoint-bg);
    border-radius: 8px;
    overflow-x: auto;
    padding: 20px;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.05); /* Bayangan inset */
}

.api-response strong {
    display: block;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.api-response pre {
    font-family: 'Fira Code', 'JetBrains Mono', monospace; /* Tambah JetBrains Mono */
    font-size: 14.5px;
    white-space: pre;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    min-width: max-content;
    display: inline-block;
    background: var(--container-bg);
    border: 1px solid var(--item-border);
    border-radius: 6px;
    color: var(--text-color); /* Pastikan warna teks sesuai tema */
}

/* Scrollbar */
.api-response::-webkit-scrollbar {
    height: 10px; /* Scrollbar lebih tebal */
    background: var(--endpoint-bg);
    border-radius: 5px;
}

.api-response::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.api-response::-webkit-scrollbar-corner {
    background: var(--endpoint-bg);
}

/* Syntax Highlighting */
.api-response .key { color: var(--json-key-color); }
.api-response .string { color: var(--json-string-color); }
.api-response .number { color: var(--json-number-color); }
.api-response .boolean { color: var(--json-boolean-color); }
.api-response .null { color: var(--json-null-color); }

/* --- Toggle Response Button --- */
.toggle-response-btn {
    background-color: #6c757d !important; /* Warna abu-abu netral */
    color: white !important;
    padding: 12px 25px !important;
    margin-top: 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
    width: auto; /* Untuk desktop */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-response-btn:hover {
    background-color: #5a6268 !important; /* Warna sedikit lebih gelap saat hover */
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toggle-response-btn i {
    margin-right: 0; /* Hilangkan margin, gunakan gap */
}

.response-button-container {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

/* --- API Endpoint --- */
.api-endpoint {
    font-family: 'Fira Code', monospace;
    color: var(--endpoint-color);
    background-color: var(--endpoint-bg);
    padding: 8px 12px; /* Padding lebih besar */
    border-radius: 6px;
    margin-top: 15px;
    font-size: 15px;
    display: inline-block; /* Agar padding bekerja dengan baik */
    white-space: pre-wrap; /* Mempertahankan spasi dan baris baru */
    word-break: break-all; /* Memecah kata panjang */
}


/* --- Footer Styling --- */
footer {
    margin-top: 40px;
    padding: 25px; /* Padding lebih besar */
    border-top: 1px solid var(--footer-border);
    text-align: center;
    background: var(--background-color); /* Footer dengan background solid */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Jarak antar elemen */
}

.copyright {
    font-size: 15px;
    color: var(--copyright-color);
    text-align: center;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 25px; /* Jarak antar link sosial */
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--social-bg);
    border-radius: 25px; /* Lebih bulat */
    color: var(--social-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 15px var(--item-hover-shadow);
    background: var(--primary-color); /* Background berubah saat hover */
    color: white;
}

.social-link i {
    font-size: 22px; /* Ukuran ikon lebih besar */
}

.social-link:hover i.fa-github {
    color: white; /* Ikon putih saat hover */
}

.social-link:hover i.fa-whatsapp {
    color: white;
}

.social-link span {
    font-size: 15px;
    font-weight: 600;
}

/* --- Welcome Section --- */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--welcome-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease-out; /* Animasi muncul dari bawah */
}

.welcome-section h2 {
    color: var(--welcome-title);
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.welcome-section p {
    color: var(--welcome-text);
    font-size: 17px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Statistics Section --- */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Kolom responsif */
    gap: 25px;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 5px 18px var(--container-shadow);
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--stat-bg);
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Bayangan item stat */
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-item i {
    font-size: 38px; /* Ukuran ikon lebih besar */
    color: var(--primary-color);
    margin-bottom: 18px;
    display: block;
}

.stat-item span {
    display: block;
    font-size: 42px; /* Ukuran angka lebih besar */
    font-weight: 800;
    color: var(--stat-color);
    margin: 12px 0;
    letter-spacing: -1px;
}

.stat-item p {
    color: var(--stat-text);
    font-size: 17px;
    margin: 0;
    font-weight: 500;
}

/* --- Theme Switch Button --- */
.theme-switch-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 65px; /* Lebar switch sedikit lebih besar */
    height: 34px; /* Tinggi switch sedikit lebih besar */
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 34px; /* Lebih bulat */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px; /* Ukuran slider lebih besar */
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(31px); /* Geser slider lebih jauh */
}

.slider .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 16px; /* Ukuran ikon lebih besar */
    transition: opacity 0.3s ease;
}

.sun-icon {
    left: 8px;
    opacity: 1;
}

.moon-icon {
    right: 8px;
    opacity: 0;
}

input:checked ~ .slider .sun-icon {
    opacity: 0;
}

input:checked ~ .slider .moon-icon {
    opacity: 1;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .container {
        padding: 25px;
    }
    h1 {
        font-size: 30px;
    }
    .api-category h2 {
        font-size: 26px;
    }
    .api-item {
        padding: 20px;
    }
    .modal-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .menu-btn {
        display: block;
        left: 15px;
        top: 15px;
        padding: 10px;
        border-radius: 6px;
        box-shadow: 0 2px 8px var(--container-shadow);
    }
    .menu-btn .bar {
        width: 22px;
        height: 3px;
        margin: 3px 0;
    }
    .category-panel {
        width: 260px;
        left: -280px;
    }
    .panel-header {
        padding: 15px;
    }
    .panel-header h3 {
        font-size: 20px;
    }
    .close-btn {
        font-size: 24px;
    }
    .category-link {
        padding: 12px 15px;
        font-size: 15px;
    }
    .theme-switch-container {
        top: 15px;
        right: 15px;
    }
    h1 {
        font-size: 28px;
        margin-top: 60px; /* Ruang untuk tombol menu */
    }
    .search-container {
        margin: 25px auto;
        max-width: 90%;
    }
    #search-input {
        padding: 12px 20px;
        padding-left: 45px;
        font-size: 15px;
    }
    .search-container i {
        left: 18px;
        font-size: 16px;
    }
    .welcome-section {
        padding: 25px;
        margin-bottom: 30px;
    }
    .welcome-section h2 {
        font-size: 26px;
    }
    .welcome-section p {
        font-size: 15px;
    }
    .statistics {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    .stat-item {
        padding: 20px;
    }
    .stat-item i {
        font-size: 32px;
    }
    .stat-item span {
        font-size: 36px;
    }
    .stat-item p {
        font-size: 15px;
    }
    .api-category h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .api-item {
        padding: 18px;
    }
    .api-method {
        font-size: 13px;
        padding: 4px 8px;
        min-width: 60px;
    }
    .api-status-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    .api-title {
        font-size: 18px;
    }
    .api-description {
        padding: 12px;
        font-size: 14px;
    }
    .api-button-container {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    .api-description button {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        font-size: 14px;
    }
    .modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 12px;
    }
    .modal-header {
        padding: 16px 20px;
        font-size: 1.2rem;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    .close-modal {
        font-size: 26px;
    }
    .modal-body {
        padding: 20px;
    }
    .tester-controls {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    .tester-method, .tester-url {
        padding: 12px 15px;
        font-size: 14px;
    }
    .tester-method {
        background-position: right 12px center;
        background-size: 16px;
    }
    .send-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
    .response-output {
        min-height: 180px;
        max-height: 40vh;
        padding: 20px;
        font-size: 13.5px;
    }
    .image-response {
        margin: 15px 0;
    }
    .api-image-response {
        max-height: 300px;
    }
    .download-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .params-container {
        gap: 10px;
        margin: 15px 0;
    }
    .param-input input {
        padding: 10px;
        font-size: 14px;
    }
    .api-response {
        padding: 15px;
    }
    .api-response pre {
        font-size: 13px;
        padding: 15px;
    }
    .toggle-response-btn {
        width: 100%;
        padding: 10px 20px !important;
        margin-top: 12px;
    }
    .footer-content {
        gap: 15px;
    }
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    .social-link {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        font-size: 14px;
    }
    .social-link i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .menu-btn {
        left: 10px;
        top: 10px;
        padding: 8px;
    }
    .theme-switch-container {
        top: 10px;
        right: 10px;
    }
    h1 {
        font-size: 24px;
        margin-top: 50px;
    }
    .container {
        padding: 15px;
        border-radius: 10px;
    }
    .search-container {
        margin: 20px auto;
    }
    #search-input {
        padding: 10px 15px;
        padding-left: 40px;
        font-size: 14px;
    }
    .search-container i {
        left: 15px;
        font-size: 15px;
    }
    .welcome-section {
        padding: 20px;
    }
    .welcome-section h2 {
        font-size: 22px;
    }
    .welcome-section p {
        font-size: 14px;
    }
    .statistics {
        grid-template-columns: 1fr; /* Satu kolom */
        gap: 10px;
        padding: 15px;
    }
    .stat-item {
        padding: 15px;
    }
    .stat-item i {
        font-size: 28px;
    }
    .stat-item span {
        font-size: 32px;
    }
    .stat-item p {
        font-size: 14px;
    }
    .api-category h2 {
        font-size: 20px;
    }
    .api-item {
        padding: 15px;
    }
    .api-title {
        font-size: 16px;
    }
    .api-description {
        padding: 10px;
    }
    .api-description p {
        font-size: 13px;
    }
    .modal-content {
        border-radius: 10px;
    }
    .modal-header {
        padding: 14px 16px;
    }
    .modal-body {
        padding: 15px;
    }
    .tester-method, .tester-url {
        padding: 10px 12px;
        font-size: 13px;
    }
    .send-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .response-output {
        padding: 15px;
        font-size: 12.5px;
    }
    .api-response pre {
        font-size: 12px;
        padding: 12px;
    }
    .api-endpoint {
        font-size: 13px;
        padding: 6px 10px;
    }
    .footer-content {
        gap: 10px;
    }
    .copyright {
        font-size: 13px;
    }
    .social-link span {
        font-size: 13px;
    }
}
