:root {
  color: var(--ucl-dark-purple);
  --ucl-white: #ffffff;
  --ucl-off-white: #fafafa;
  --ucl-pale-purple: #eedeff;
  --ucl-light-purple: #ddbdff;
  --ucl-bright-purple: #993bff;
  --ucl-mid-purple: #ba82ff;
  --ucl-dark-purple: #361a54;
  --theme-background: var(--ucl-pale-purple);
  --button-active-background: #f5effb;
}

body {
  color: var(--ucl-dark-purple);
  font-family: "UCL Sans", "Segoe UI", "Roboto", "Arial", sans-serif;
  background: linear-gradient(120deg, #f0f4fc 0%, #e3e9f7 100%);
  margin: 0;
  min-height: 100vh;
  margin-bottom: 20px;
}

#yoe-button-row,
#theme-button-row,
#detail-button-row,
#module-search {
  text-align: center;
  margin: 16px 0;
  line-height: 250%;
}

#yoe-button-row {
  margin-top: 0;
  padding-top: 0;
}

a {
  color: var(--ucl-bright-purple);
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background: var(--ucl-off-white);
}

th,
td {
  text-align: left;
  padding: 12px 16px;
}

th {
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e2e8f0;
}

tr:nth-child(even) {
  background: #f9fafb;
}

tr:hover {
  background: #edf2f7;
  transition: background 0.2s ease;
}

td {
  border-bottom: 1px solid #e2e8f0;
  color: #444;
}

header {
  background: var(--ucl-off-white);
  padding: 32px 0 24px 0;
  text-align: center;
  border-bottom: 1px solid var(--ucl-dark-purple);
}

header h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(60, 80, 120, 0.12);
}

main {
  max-width: max(1100px, 90%);
  margin: 0 auto;
  padding: 16px 16px 0 16px;
}

#intro p {
  font-size: 1rem;
  color: #2d3a4a;
  margin-bottom: 18px;
  text-align: center;
}

button.theme-button {
  border: 2px solid #d1d5db;
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  background: #f7faff;
}

button:hover {
  background: #eaf4ff;
  box-shadow: 0 2px 8px rgba(60, 80, 120, 0.12);
}

.module button.theme-button {
  padding: 2px 6px;
  font-size: 12px;
}

.active-theme {
  /* border-color: #2d3a4a; */
}

button.theme-button.active-theme {
  border-color: #9c27b0;
  background-color: rgba(243, 229, 246, 0.92);
}

button[data-state="on"] {
  border-color: #2d3a4a;
  background: #eaf4ff;
}