:root {
  --bg-main: #0f172a;
  --bg-secondary: #020617;
  --bg-card: #111827;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #22c55e;
  --accent-hover: #16a34a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: var(--text-main);
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  padding: 20px;
  position: fixed;
  height: 100%;
  transition: transform 0.3s ease;
  z-index: 100;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}


.sidebar li {
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar li i {
  width: 20px;
  height: 20px;
  color: var(--text-main);
}

.sidebar li:hover {
  background: var(--bg-card);
  transform: translateX(5px);
}

.join-btn {
  display: block;
  margin-top: 25px;
  background: var(--accent);
  color: #052e16;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.join-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Content */
.content {
  margin-left: 260px;
  padding: 40px;
  width: 100%;
}

/* Page Animation */
.page {
  display: none;
  animation: fadeSlide 0.5s ease;
}

.page.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Style */
.page h1 {
  color: white;
  margin-bottom: 15px;
}

.page p, .page li {
  color: var(--text-muted);
  line-height: 1.7;
}

.page ul {
  padding-left: 20px;
}

/* CTA Button */
.join-btn.big {
  margin-top: 30px;
  font-size: 18px;
  padding: 14px;
}


/* Mobile */
.menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  background: var(--bg-card);
  border: none;
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 200;
  cursor: pointer;
}

.menu-toggle i {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    padding: 25px;
  }

  .menu-toggle {
    display: block;
  }
}
/* Overlay untuk lock background */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Saat sidebar aktif */
.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Lock scroll saat sidebar aktif */
body.lock-scroll {
  overflow: hidden;
}
