/* ================= Warna Aksen ================= */
:root {
  --accent: #9f9fff; /* ungu utama */
  --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;
}
/* ================= Output & Current ================= */
.output, #logCurrent, #renderOutput, .current {
  margin: 6px 0;
  font-size: 0.5rem;
  color: var(--accent);
  font-weight: 400;
}
/* ================= 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;
}

/* ================= Header Box ================= */
h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--accent);
  font-weight: bold;
}

/* ================= 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 {
  background: #121212;
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 600px; /* diperluas */
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* ================= Titles Box ================= */
.box h2 {
  font-size: 1rem;
  color: var(--accent);
  text-align: left;
  font-weight: bold;
  margin: 0 0 8px 0;
}

/* ================= 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 ================= */
.output {
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: bold;
}


/* ================= 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;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(17,17,17,0.95);
  color: var(--accent);
  padding: 14px 16px 12px 16px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(159,159,255,0.6);
  z-index: 999;
  width: 260px;
  font-size: 13px;
  backdrop-filter: blur(10px);
  line-height: 1.4;
  position: relative; /* ✅ penting supaya closeModal absolut tetap di pojok modal */
} 

.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;
}
/* ================= Kill List Dropdown ================= */
#killListList {
  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); }
}

/* Scrollbar elegan */
#killListList::-webkit-scrollbar {
  width: 6px;
}
#killListList::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 6px;
}
#killListList::-webkit-scrollbar-track {
  background: #0d0d0d;
}


/* Checkbox toggle */
/* ================== Checkbox Toggle (Updated) ================== */
.app-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: #0d0d0d;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* efek hover */
.app-toggle:hover {
  box-shadow: 0 0 6px rgba(159,159,255,0.4);
  transform: scale(1.05);
}

/* tanda centang */
.app-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--bg-dark);
  border-bottom: 2px solid var(--bg-dark);
  opacity: 0;
  transform: rotate(45deg) scale(0.8);
  transition: all 0.25s ease;
}

/* saat aktif */
.app-item.active .app-toggle {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(159,159,255,0.6);
}

.app-item.active .app-toggle::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* juga ubah warna teks saat aktif */
.app-item.active .app-name span {
  color: var(--accent);
  font-weight: 600;
}

/* Search bar */
#killListSearch {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: #0f0f0f;
  color: var(--text-light);
  font-size: 0.9rem;
  outline: none;
  transition: 0.3s ease;
}

#killListSearch:focus {
  box-shadow: 0 0 10px rgba(159,159,255,0.5);
  background: #141414;
}

/* ================= Footer ================= */
.footer {
  position: relative;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #888;
  margin-top: 12px;
  text-align: center;
}
.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); text-shadow: none; }