/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* BACKGROUND */
body {
  background: #0a0a12;
  color: #fff;
}

/* OPTIONAL ANIMATED GLOW BG */
body::before {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 60%);
  animation: moveBg 10s linear infinite;
  z-index: -1;
}

@keyframes moveBg {
  0% { transform: translate(0,0); }
  50% { transform: translate(-20%, -20%); }
  100% { transform: translate(0,0); }
}

/* LAYOUT */
.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #12002b, #05010a);
  padding: 20px;
  border-right: 1px solid #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.sidebar h2 {
  color: #a855f7;
  text-shadow: 0 0 10px #a855f7;
  margin-bottom: 20px;
}

/* NAV BUTTON */
.nav-btn {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  background: transparent;
  border: 1px solid #2a0a4a;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #a855f7;
}

.nav-btn.active {
  background: #a855f7;
}

.nav-btn.disabled {
  opacity: 0.4;
}

/* MAIN */
.main {
  flex: 1;
  padding: 20px;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGIN BUTTON */
.login-btn {
  background: #a855f7;
  border: none;
  padding: 10px 16px;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.login-btn:hover {
  box-shadow: 0 0 15px #a855f7;
  transform: translateY(-2px);
}

/* CARD */
.card {
  margin-top: 20px;
  padding: 20px;
  background: rgba(20, 10, 40, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  transition: 0.2s;
}

.card:hover {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* BUTTON */
.primary {
  margin-top: 10px;
  padding: 10px;
  background: #a855f7;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px #a855f7;
}

/* TEXT GLOW */
h1, h2 {
  text-shadow: 0 0 10px #a855f7;
}

/* ACTIVE CLICK FEEL */
button:active {
  transform: scale(0.95);
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
  }

  .nav-btn {
    flex: 1;
    margin: 5px;
    white-space: nowrap;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}