body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 2rem;
  background: #f1f5f9;
  color: #0f172a;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
h1 {
  margin-bottom: 0.5rem;
}
button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
button:hover {
  background: #1d4ed8;
}
input,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 1rem;
}
.card {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  margin-top: 1rem;
  background: #f8fafc;
}
nav {
  margin-bottom: 1rem;
}
.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.nav-left {
  display: flex;
  align-items: center;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#userStatus {
  margin-right: 0.5rem;
}
.nav-separator {
  border: none;
  border-top: 2px solid #cbd5e1;
  margin: 1rem 0;
}
.menu-hidden {
  display: none;
}
.menu-visible {
  display: block;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
li {
  padding: 0.5rem;
}
li a {
  text-decoration: none;
  color: #2563eb;
}
li a:hover {
  text-decoration: underline;
}

/* Menu button states based on login */
#menuButton.menu-disabled {
  background: #bfdbfe;
  color: #04316b;
}
#menuButton.menu-disabled:hover {
  background: #93c5fd;
}
#menuButton.menu-enabled {
  background: #2563eb;
  color: white;
}
#menuButton.menu-enabled:hover {
  background: #1d4ed8;
}

/* Timetable styles */
.table-wrapper {
  height: 600px;
  overflow-y: auto;
  border: 1px solid #ddd;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #4CAF50;
  color: white;
  position: sticky;
  top: 0;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Welcome image: expand to full width of its section */
section img.welcome-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}