/* ================= Warna Aksen ================= */
:root {
  --accent: #9f9fff; /* ungu utama */
  --accent-light: #9f9fff; /* ungu untuk hover/glow dihapus */
  --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 */
.info-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Icon (tanpa filter warna) */
.info-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  opacity: 0.9;
  transition: 0.3s;
}

.info-item:hover .info-icon {
  opacity: 1;
}

/* 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; /* top + bottom padding agar scroll aman */
  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 / Logs ================= */
.box, #logBox, #renderBox {
  background: #121212;
  border: 1px 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 {
  font-weight: bold;
  margin: 0 0 8px 0;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--accent);
  text-shadow: none;
}
h2 {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: left;
  color: #cfcfff;
  
  text-shadow: none;
}

.box {
  font-size: 1rem;
  color: var(--accent);
  text-align: left;
  text-shadow: none;
}

/* ================= 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;
}

/* ================= Switch Toggle ================= */
.switch input:checked + .slider { background: var(--accent); }
input:checked + .slider:before { transform: translateX(22px); background: var(--accent); }

/* ================= 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.8rem;
  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);
}
.infoModal .closeModal { color: var(--accent); }

/* ================= 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); text-shadow: none; }

/* ================= Footer ================= */
.footer {
  position: relative; /* bukan fixed */
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #888;
  margin-top: 12px;
  text-align: center;
  pointer-events: auto;
}
.footer .footer-brand { 
  color: #888; 
  font-weight: 600; 
  text-decoration: none; 
}
.footer .footer-brand:hover { 
  text-decoration: underline; 
}