* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0f1115;
  color: #eaeaea;
}

/* --- Topbar --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #151820;
}

.topbar .left {
  display: flex;
  align-items: center;
}

.logo {
  height: 36px;
  margin-right: 12px;
}

.title {
  font-size: 20px;
  font-weight: 600;
}

/* --- Hamburger --- */
.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* --- Sidebar on right --- */
.sidebar {
  position: fixed;
  top: 72px; /* topbar height */
  right: 0;
  width: 220px;
  height: calc(100% - 72px);
  background: #151820;
  border-left: 1px solid #2a2f3a;
  transform: translateX(100%); /* fully offscreen */
  transition: transform 0.3s ease;
  z-index: 1000; /* above content */
  pointer-events: none; /* ignore clicks when hidden */
}

.sidebar.open {
  transform: translateX(0);
  pointer-events: auto; /* allow clicks when open */
}

.sidebar a {
  display: block;
  padding: 12px 16px;
  color: #eaeaea;
  text-decoration: none;
  font-size: 16px;
}

.sidebar a:hover {
  background: #1e2330;
}



.sidebar a {
  display: block;
  padding: 12px 16px;
  color: #eaeaea;
  text-decoration: none;
  font-size: 16px;
}

.sidebar a:hover {
  background: #1e2330;
}

/* --- Login Box --- */
.login-box {
  width: 320px;
  margin: 120px auto;
  padding: 24px;
  background: #151820;
  border: 1px solid #2a2f3a;
}

.login-box h2 {
  margin-bottom: 16px;
  font-weight: 500;
}

.login-box input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  background: #0f1115;
  border: 1px solid #2a2f3a;
  color: white;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: #3b82f6;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.login-box button:hover {
  background: #2563eb;
}

#status {
  margin-top: 10px;
  font-size: 14px;
}

/* --- Dashboard --- */
.dashboard-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 72px);
}

.dashboard-panel {
  width: 80%;
  height: 80%;
  padding: 24px;
  background: #151820;
  border: 1px solid #2a2f3a;
}

.dashboard-panel h2 {
  margin-bottom: 20px;
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  background: #0f1115;
  border: 1px solid #2a2f3a;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #3b82f6;
}
