* {
  box-sizing: border-box;
  font-family: Tahoma, sans-serif;
}

body {
  margin: 0;
  background: #f2f4f7;
  color: #222;
}

/* CENTER AUTH */
.center-box {
  max-width: 360px;
  margin: 80px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.center-box h2 {
  text-align: center;
}

.center-box input,
.center-box select,
.center-box button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.center-box button {
  background: #2ecc71;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

/* TOP BAR */
.topbar {
  background: #2c3e50;
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-wrapper {
  position: relative;
}

#menuBtn {
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

.menu {
  position: absolute;
  top: 30px;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  overflow: hidden;
  min-width: 160px;
  z-index: 20;
}

.menu button {
  width: 100%;
  border: none;
  padding: 10px;
  background: white;
  cursor: pointer;
  text-align: right;
}

.menu button:hover {
  background: #f0f0f0;
}

/* MAIN */
main {
  padding: 16px;
}

.card {
  background: white;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.med {
  background: #f9fafb;
  border-right: 5px solid #2ecc71;
}

/* UTIL */
.hidden {
  display: none;
}

/* DARK MODE */
body.dark {
  background: #121212;
  color: #eee;
}

body.dark .center-box,
body.dark .card,
body.dark .menu {
  background: #1e1e1e;
  color: #eee;
}

body.dark input,
body.dark select {
  background: #2b2b2b;
  color: #eee;
  border: 1px solid #444;
}

body.dark .menu button {
  background: #1e1e1e;
  color: #eee;
}

body.dark .menu button:hover {
  background: #333;
}
