/* ================= Warna Aksen ================= */
:root {
  --accent: #9f9fff; /* ungu utama */
  --accent-light: #9f9fff;
  --bg-dark: #0a0a0a;
  --bg-box: #111111;
  --text-light: #fff;
}
.btn.active {
  background-color: #9f9fff !important;
  color: black;
  box-shadow: 0 0 10px #9f9fff;
}
/* ================= System Info ================= */
.system-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
}

/* Setiap baris info */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
  border: 1px solid transparent;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(159, 159, 255, 0.4);
  box-shadow: 0 0 6px rgba(159, 159, 255, 0.25);
  transform: scale(1.015);
}

/* Kiri: icon + label */

/* Label kiri */
.info-label {
  color: #cfcfff;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Value kanan */
.info-value {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
  font-size: 11px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ================= Body ================= */
body {
  font-family: Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  padding: 60px 20px 100px 20px;
  font-size: 0.9rem;
  text-align: left;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

/* ================= Header Box ================= */
#headerBox {
  background-color: var(--bg-box);
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(159,159,255,0.5);
  margin-bottom: 16px;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.header-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--accent);
}

.header-title {
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: none;
}

/* ================= Status Daemon ================= */
#daemonStatus {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--bg-box);
  box-shadow: 0 0 10px rgba(159,159,255,0.5);
  z-index: 100;
}
.status-online { color: var(--accent); animation: blink 2s infinite; }
.status-offline { color: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 0%,50%,100%{opacity:1}25%,75%{opacity:0.3} }

/* ================= Box ================= */
.box, #logBox, #renderBox {
  background: var(--bg-box);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 480px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* ================= Titles ================= */
h1, .box h2, h0, .box h1 {
  font-weight: bold;
  margin: 0 0 8px 0;
}
h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--accent);
}
h0 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--accent);
}
.box h2 {
  font-size: 1rem;
  color: var(--accent);
  text-align: left;
}

/* ================= Tombol ================= */
.btn {
  background: #1a1a1a;
  color: #FFFFFF;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 6px;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: none;
}

/* ================= Output & Current ================= */
.output, #logCurrent, #renderOutput, .current {
  margin: 6px 0;
  font-size: 0.5rem;
  color: var(--accent);
  font-weight: 400;
}
/* ===== Sub-box header rata kiri-kanan ===== */
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px; /* jarak kecil antara teks dan (i) */
}

/* Icon "i" nempel di teks, bukan melayang */
.info-icon {
  font-size: 0.9em;
  color: var(--accent);
  cursor: pointer;
}

/* ===== Switch tetap kanan ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.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: 0.4s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

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

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ================= Info Icon & Modal ================= */
.info-icon {
  display: inline-block;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background-color: #1a1a1a;
  color: var(--accent);
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85rem;
  vertical-align: middle;
  transition: 0.3s;
}
.info-icon:hover {
  background-color: var(--accent);
  color: var(--bg-dark);
}


.infoModal {
  display: none;
  position: fixed;
  background: rgba(17,17,17,0.95);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(159,159,255,0.6);
  z-index: 999;
  width: 240px;
  font-size: 13px;
  backdrop-filter: blur(10px);
  line-height: 1.4;
}

.infoModal .closeModal {
  color: var(--accent);
  cursor: pointer;
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 10px;
}

/* ✅ Tambahan: styling khusus untuk catatan dalam modal */
.infoModal .note {
  font-size: 11.5px;       /* lebih kecil */
  font-weight: normal;     /* tidak bold */
  color: #bbb;             /* abu lembut */
  margin-top: 6px;
  line-height: 1.3;
}

/* ================= CPU Graph ================= */
#cpuGraph {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  margin-top: 10px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  padding: 5px;
  overflow: hidden;
}

.cpu-bar {
  width: 20px;
  text-align: center;
  font-size: 0.75rem;
  margin: 0 5px;
  border-radius: 3px 3px 0 0;
  background-color: var(--accent);
}
/* ================= CPU Graph ================= */
#cpuGraph {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  margin-top: 10px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  padding: 5px;
  overflow: hidden;
}
.cpu-bar {
  width: 20px;
  text-align: center;
  font-size: 0.75rem;
  margin: 0 5px;
  border-radius: 3px 3px 0 0;
  background-color: var(--accent);
}

/* ================= Gamelist & Whitelist ================= */
#gamelistSection,
#whitelistSection {
  display: none; /* awal hidden */
  margin-top: 10px;
  font-size: 0.9rem;
}

#gamelistSearch,
#whitelistSearch {
  width: 100%;
  padding: 6px;
  margin-bottom: 6px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #202020;
  color: #fff;
  font-size: 0.9rem;
}

#gamelistList,
#whitelistList {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-box);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(159, 159, 255, 0.25);
  margin-top: 6px;
  animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
#gamelistList div,
#whitelistList div {
  display: flex;
  align-items: center;
  padding: 2px 0;
}

#gamelistList input[type="checkbox"],
#whitelistList input[type="checkbox"] {
  margin-right: 6px;
  cursor: pointer;
}

#gamelistList label,
#whitelistList label {
  cursor: pointer;
  user-select: none;
  flex: 1;
  font-size: 0.9rem;
}

/* ================= CPU Control Buttons ================= */
#cpuControlButtons {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 tombol per baris */
  gap: 8px;
  width: 100%;
}
.cpu-control-btn {
  padding: 12px 0;
  text-align: center;
  border-radius: 8px;
  background-color: #1a1a1a;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}
.cpu-control-btn:hover {
  filter: brightness(1.2);
}
================ Footer ================= */
.footer {
  position: relative; /* bukan fixed */
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #888;
}
.footer .footer-brand {
  color: #888;
  font-weight: 600;
  text-decoration: none;
}
.footer .footer-brand:hover {
  text-decoration: underline;
}
/* ================= Bottom Navigation ================= */
.bottom-nav {
  position: fixed; bottom:0; left:0; right:0;
  height:60px; background: rgba(0,0,0,0.95);
  display:flex; justify-content:space-around; align-items:center;
  backdrop-filter: blur(8px); border-top:1px solid var(--accent);
}
.nav-item { color:#888; font-size:24px; cursor:pointer; transition:0.3s; }
.nav-item:hover { color: var(--accent); }
.nav-item.active { color: var(--accent); }

/* ================= Animasi Blink ================= */
.blinker {
  animation: blink 1s infinite;
}
@keyframes blink { 0%,50%,100%{opacity:1}25%,75%{opacity:0.3} }