/* ====== Global Resets and Base Styles ====== */
* {
  box-sizing: border-box;
}

body {
  background-color: rgb(40, 40, 60);
  font-family: sans-serif;
  color: white;
}

a {
  color: white;
}

/* ====== Layout ====== */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 15vw;
  height: 100vh;
  background-color: rgb(30, 30, 50);
}

#main {
  margin-left: 16vw;
}

/* ====== Typography and Elements ====== */
#sidebar a {
  display: block;
  margin: 6px;
  font-weight: bold;
  font-size: 1.5em;
}

#sidebar a:nth-of-type(1) {
  font-size: 2em;
}

button {
  padding: 0.5em;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
}

/* ====== Table Styling ====== */
th, td {
  padding: 7px;
  background-color: rgba(0, 0, 0, 0.1);
  text-align: center;
}

td input {
  width: 100%;
  height: 100%;
  margin: -7px;
  background: none;
  border: none;
  text-align: center;
  color: white;
}

/* ====== Popups and Modals ====== */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgb(30, 30, 50);
  border-radius: 20px;
  overflow-y: auto;
  display: none;
}

.popup h1, .top {
  margin-top: 0;
}

/* ====== Utility Classes ====== */
.flex {
  display: flex;
  justify-content: space-evenly;
}

.flex * {
  margin-left: 2.5px;
  margin-right: 2.5px;
}