body {
  background: #f4f6f9;
  font-family: 'Segoe UI';
}

/* SIDEBAR */
.sidebar {
  width: 230px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  position: fixed;
  padding: 20px;
}

.sidebar a {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  margin-bottom: 8px;
  transition: 0.2s;
}

.sidebar a:hover {
  background: #f1f5f9;
}

/* MAIN */
.main {
  margin-left: 230px;
  padding: 20px;
}

/* TOPBAR */
.topbar {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* CARD */
.card-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* STATUS DOT */
.status-dot {
  height: 10px;
  width: 10px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

/* ============================= */
/* SWITCH MODERN (iOS STYLE 🔥) */
/* ============================= */

.switch-ui {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
}

.switch-ui input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* background */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 999px;
  transition: all 0.25s ease;
  font-size: 10px;
  font-weight: 600;
}

/* TEXT OFF */
.slider::after {
  content: "OFF";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 10px;
  transition: 0.25s;
}

/* BULATAN */
.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(.34,1.56,.64,1); /* bounce */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ON STATE */
.switch-ui input:checked + .slider {
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

/* TEXT ON */
.switch-ui input:checked + .slider::after {
  content: "ON";
  left: 8px;
  right: auto;
  color: white;
}

/* MOVE KNOB */
.switch-ui input:checked + .slider:before {
  transform: translateX(26px);
}

/* BOUNCE EFFECT */
.switch-ui:active .slider:before {
  width: 24px;
}