/* === GambarBacok - Dark Luxury Supreme Theme (v3.1 Glow Sweep Enhanced) === */
:root {
  --primary: #755efc;
  --primary-light: #9b8cff;
  --secondary: #00ffc6;
  --danger: #ff4d6d;
  --bg-main: #070a0f;
  --bg-card: rgba(16, 18, 25, 0.8);
  --text-main: #e6edf3;
  --text-muted: #9da5b4;
  --border-glow: rgba(120, 130, 255, 0.3);
}

/* BODY BACKGROUND */
body.gb-dark {
  background: radial-gradient(circle at 15% 15%, rgba(120, 100, 255, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 80% 90%, rgba(0, 255, 200, 0.08) 0%, transparent 40%),
              var(--bg-main);
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* HEADER */
.gb-navbar {
  background: rgba(14, 16, 22, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 10;
}
.gb-navbar span, .gb-navbar a {
  color: var(--text-main);
}

/* CARD */
.gb-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 10px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Overlay gradient */
.gb-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(120,130,255,0.12), rgba(0,255,200,0.08));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none !important;
  z-index: 0 !important;
}
.gb-card:hover::before { opacity: 1; }

/* Pastikan isi di atas overlay */
.gb-card > * { position: relative; z-index: 2; }

/* TITLE */
.gb-title {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* === BUTTONS (dengan efek sweep glow) === */
.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(120,130,255,0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 5 !important;
  pointer-events: auto !important;
}

/* Sweep light line */
.gb-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
  transform: translateX(-120%);
  transition: transform 0.4s ease;
  z-index: 6;
}
.gb-btn:hover::after {
  transform: translateX(120%);
}

/* Hover glow + lift */
.gb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(120,130,255,0.45);
  filter: brightness(1.15);
}

/* Variant green */
.gb-btn--green {
  background: linear-gradient(90deg, #00d3a3, #00ffc6);
  box-shadow: 0 0 12px rgba(0,255,200,0.25);
}
.gb-btn--green:hover {
  box-shadow: 0 0 20px rgba(0,255,200,0.4);
}

/* Variant red */
.gb-btn--red {
  background: linear-gradient(90deg, #ff4d6d, #ff8fa3);
  box-shadow: 0 0 12px rgba(255,77,109,0.25);
}
.gb-btn--red:hover {
  box-shadow: 0 0 20px rgba(255,77,109,0.4);
}

/* BADGE */
.gb-badge {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(120,130,255,0.3);
}

/* INPUT */
.gb-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px 14px;
  transition: 0.25s;
  position: relative;
  z-index: 5 !important;
}
.gb-input:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 10px rgba(120,130,255,0.2);
  background: rgba(255, 255, 255, 0.07);
}

/* CODE AREA */
.gb-code {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  position: relative;
  z-index: 5;
}

/* ITEM LIST */
.flex.items-center.justify-between.p-4.border.rounded-lg {
  border-color: rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  transition: all 0.3s ease;
}
.flex.items-center.justify-between.p-4.border.rounded-lg:hover {
  background: rgba(120,130,255,0.05);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(120,130,255,0.12);
}

/* ALERT */
.gb-alert {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 500;
}
.gb-alert--success {
  background: rgba(0,255,200,0.1);
  border: 1px solid rgba(0,255,200,0.25);
  color: #aefce9;
}
.gb-alert--danger {
  background: rgba(255,77,109,0.08);
  border: 1px solid rgba(255,77,109,0.2);
  color: #ffc5cf;
}

/* SMOOTH SCROLL */
html { scroll-behavior: smooth; }
* { transition: all 0.2s ease; }

/* UNIVERSAL FIX */
.gb-card::after,
.gb-card::before,
.gb-dark.gb-noise::before,
.gb-dark.gb-noise::after,
.gb-navbar::before,
.gb-navbar::after {
  pointer-events: none !important;
  z-index: 0 !important;
}
button, input, a, select, textarea, label {
  position: relative;
  z-index: 5 !important;
  pointer-events: auto !important;
}
form, .upload-section, .gb-card form {
  position: relative;
  z-index: 5 !important;
  pointer-events: auto !important;
}
/* ==== NORMALISASI TOMBOL ==== */
.gb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  height:40px;                 /* konsisten */
  padding:0 14px;              /* konsisten */
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  line-height:1;               /* biar vertical center */
  white-space:nowrap;          /* biar gak patah */
  flex:0 0 auto;               /* jangan melar */
}

.gb-btn--sm{ height:36px; padding:0 12px; font-size:13px; }
.gb-btn i{ font-size:14px; line-height:1; }

/* Varian warna (kalau belum ada) */
.gb-btn--primary{ background:linear-gradient(90deg,#755efc,#9b8cff); color:#fff; }
.gb-btn--green{ background:linear-gradient(90deg,#00d3a3,#00ffc6); color:#0b1412; }
.gb-btn--blue{ background:#4ea8de; color:#fff; }
.gb-btn--red{ background:#ff6b81; color:#fff; }
.gb-btn--gray{ background:#2b2f36; color:#e6edf3; }

/* ==== BARIS AKSI KARTU ==== */
.gb-actions{
  display:flex;
  flex-wrap:wrap;              /* kalau sempit, turun baris */
  gap:10px;
  align-items:center;
  justify-content:flex-end;    /* kanan di desktop */
  margin-top:.5rem;
}

/* Mobile: tombol mulai dari kiri supaya gampang di-klik */
@media (max-width: 640px){
  .gb-actions{ justify-content:flex-start; }
}

/* ==== ROW INPUT + TOMBOL ==== */
.gb-input-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.gb-input-row > input,
.gb-input-row > textarea{
  flex:1 1 auto;               /* input melar */
  min-width:0;                 /* hindari overflow */
}
.gb-input-row > .gb-actions{
  flex:0 0 auto;
  margin-top:0;
}

/* ==== KARTU LIST ==== */
.gb-item{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:16px;
}
.gb-item + .gb-item{ margin-top:16px; }

/* ==== MISC ==== */
*,
*::before,
*::after{ box-sizing:border-box; } /* mencegah hitung ukuran ngaco */
.badge-clicks{
  background:#2b2f36;
  color:#a5b4fc;
  border:1px solid rgba(165,180,252,.2);
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
}
