 * {margin:0;padding:0;box-sizing:border-box;font-family:'Inter',sans-serif;}
    body {background:#f9fafb;color:#111827;transition:background .3s,color .3s;display:flex;flex-direction:column;min-height:100vh;}
    body.dark {background:#111827;color:#f9fafb;}
    .container {width:100%;max-width:1280px;margin:0 auto;padding:0 1rem;}
    header {background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06);position:sticky;top:0;z-index:50;transition:background .3s,color .3s;}
    body.dark header{background:#1f2937;}
    .header-inner{display:flex;justify-content:space-between;align-items:center;height:64px;}
    .logo{font-size:1.4rem;font-weight:700;color:#2563eb;}
    .logo a {font-size: 1.6rem; font-weight: 800; background: linear-gradient(90deg, #2563eb, #9333ea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: .6rem;}
    body.dark .logo{color:#60a5fa;}

    /* MENU HEADER */
    .nav {display:flex;gap:1.5rem;align-items:center;order:1;}
    .nav a {color:#111;text-decoration:none;font-weight:600;}
    body.dark .nav a {color:#f9fafb;}

    .actions {display:flex;align-items:center;gap:1rem;order:2;}
    /* Style untuk link aktif */
    .nav a.active {
    font-weight: 600;
    color: var(--primary, #4f46e5); /* Bisa diganti sesuai tema */
    position: relative;
    }
/* Menu header link */
.nav a {
  position: relative;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: color .3s ease, background .3s ease;
}

/* Hover efek (light mode) */
.nav a:hover {
  color: #fff;
  background: #2563eb;
}

/* Mode gelap */
body.dark-mode .nav a {
  color: #f9fafb;
}

body.dark-mode .nav a:hover {
  background: #60a5fa;
  color: #111827;
}
    .nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--primary, #4f46e5);
    border-radius: 2px;
    }

    .menu-toggle {
      display:none;
      flex-direction:column;
      cursor:pointer;
      gap:5px;
    }
    .menu-toggle span {
      display:block;
      width:25px;
      height:3px;
      background:#111;
      border-radius:3px;
    }
    body.dark .menu-toggle span {
        background:#f9fafb;
    }
body {
  background: #ffffff;
  color: #111827;
}

/* Mode gelap */
body.dark {
  background: #111827;
  color: #f9fafb;
}

/* Pastikan header & footer juga ikut */
body.dark header,
body.dark footer {
  background: #1f2937;
  color: #f9fafb;
}

    @media(max-width:768px){
      .nav {
        position:fixed;
        top:0;right:-100%;
        width:220px;
        height:100%;
        background:#fff;
        flex-direction:column;
        padding:4rem 1rem;
        box-shadow:-2px 0 10px rgba(0,0,0,.1);
        transition:right .3s ease;
        z-index:150;
      }
      body.dark .nav {background:#1f2937;}
      .nav.active {right:0;}
      .menu-toggle {display:flex;}
      .actions {order:1;}
      .nav {order:2;}
    }

    .mode-toggle{display:flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border-radius:999px;border:1px solid #d1d5db;background:#f3f4f6;font-weight:600;cursor:pointer;}
    .mode-toggle svg{width:20px;height:20px;}
    body.dark .mode-toggle{background:#374151;border-color:#4b5563;color:#f9fafb;}

    .tabs{margin-top:2rem;}
    .tab-buttons{display:flex;gap:1rem;border-bottom:2px solid #e5e7eb;}
    .tab-buttons button{background:none;border:none;padding:.75rem 1rem;font-weight:600;cursor:pointer;color:inherit;}
    .tab-buttons button.active{border-bottom:3px solid #2563eb;color:#2563eb;}
    .tab-content{display:none;margin-top:1.5rem;}
    .tab-content.active{display:block;}
    body.dark .tab-buttons button {color:#fff;}
    body.dark .tab-buttons button.active {color:#60a5fa;}

    textarea{width:100%;min-height:200px;border-radius:5px;border:1px solid #d1d5db;padding:1rem;font-family:monospace;font-size:14px;resize:vertical;background:#fff;color:#111827;}
    body.dark textarea{background:#1f2937;color:#f9fafb;border-color:#374151;}

    .button-group{display:flex;gap:.4rem;margin-top:.8rem;margin-bottom:2.5rem;flex-wrap:wrap;}
    .btn{padding:.5rem 1.2rem;border-radius:4px;border:none;font-weight:600;cursor:pointer;transition:transform .2s;}
    .btn:hover{transform:translateY(-1px);}
    .btn-copy{background:#2563eb;color:#fff;}
    .btn-clear{background:#ef4444;color:#fff;}
    .btn-minify{background:#10b981;color:#fff;}
    .btn-unminify{background:#f59e0b;color:#fff;}
    .btn-download{background:#3b82f6;color:#fff;}
    h3{margin-top:1.5rem;margin-bottom:.5rem;}

  /* Overlay umum */
    .overlay {display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:150;}

  /* ===== Footer Tengah ===== */
  footer {
    background: #ffffff; /* light mode putih */
    margin-top: auto;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid #e5e7eb;
  }
  body.dark footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo h2 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: .6rem;
  }
  .footer-logo p {
    font-size: .95rem;
    line-height: 1.7;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
  }
  body.dark .footer-logo p {color:#9ca3af;}

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #111827;
  }
  body.dark .footer-links h4 {color:#f9fafb;}

  /* sembunyikan title Menu di mobile */
  @media (max-width: 640px) {
    .footer-links h4 {
      display: none;
    }
  }

  .footer-links ul {
    list-style: none;
    display: flex;             /* selalu horizontal */
    justify-content: center;   /* posisikan di tengah */
    gap: 1.5rem;               /* jarak antar item */
    padding: 0;
    margin: 0;
    flex-wrap: wrap;           /* biar rapi kalau layar kecil */
  }

  .footer-links a {
    color: #374151;
    text-decoration: none;
    font-size: .9rem;
    position: relative;
    transition: all .3s ease;
  }
  .footer-links a::after {
    content: "";
    position: absolute;
    bottom: -3px; left: 0;
    width: 0%; height: 2px;
    background: #2563eb;
    transition: width .3s;
  }
  .footer-links a:hover::after {width: 100%;}
  body.dark .footer-links a {color:#d1d5db;}
  body.dark .footer-links a:hover::after {background:#60a5fa;}

  .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #d1d5db;
    text-align: center;
    font-size: .88rem;
    color: #6b7280;
  }
  .footer-bottom span.heart {
    animation: pulse 1.5s infinite;
    display: inline-block;
  }
  @keyframes pulse {
    0%,100% {transform: scale(1);}
    50% {transform: scale(1.2);}
  }
  .footer-bottom span {font-weight:600;}
  body.dark .footer-bottom {border-color:#374151;color:#9ca3af;}
  .footer-bottom a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
  }
  .footer-bottom a:hover {text-decoration: underline;}
  body.dark .footer-bottom a {color:#60a5fa;}

  /* Tombol close nav */
.close-nav {
  display: none; /* default hidden */
}
  .close-nav {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #374151;
}
body.dark .close-nav {color: #f9fafb;}
@media (max-width: 768px) {
  .close-nav {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #374151;
  }
  body.dark .close-nav {color: #f9fafb;}
}

  /* Popup Style */
  .popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    transition: background 0.3s ease;
  }
  .popup-box {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    transition: background 0.3s ease, color 0.3s ease;
  }
  .popup-box h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
  }
  .popup-box p {
    margin: 10px 0;
    line-height: 1.5;
  }
  .popup-box .close-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    float: right;
  }
  .popup-box .close-btn:hover {
    background: #c0392b;
  }

  /* Mode dark */
  body.dark .popup-overlay {
    background: rgba(0,0,0,0.8);
  }
  body.dark .popup-box {
    background: #1e1e1e;
    color: #f1f1f1;
  }
  body.dark .popup-box .close-btn {
    background: #d63031;
  }

