/* ================= LOADING MODAL ================= */

/* 🔹 Background overlay */
.loadingmodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.5);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  opacity: 1;
  transition: opacity 0.3s ease;
}

/* 🔹 Hidden state (fade out) */
.loadingmodal.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 🔹 Modal box */
.loadingmodal-content {
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-family: Arial;

  width: auto;
  max-width: 220px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 🔹 Spinner */
.spinner {
  width: 28px;
  height: 28px;
  border: 4px solid #ddd;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ================= TICKER ================= */

.ticker-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
}

.ticker-box {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  background: #ffd54f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.ticker-box a {
  text-decoration: none;
  color: #121212;
}

.ticker-box a:hover {
  text-decoration: underline;
}


/* ================= PAGE STYLE ================= */

body {
  font-family: 'Poppins', sans-serif;
  margin: 20px;
  padding: 20px;
  background: #f8f9fa;
  text-align: center;
  color: #002147;
}

h2 {
  color: #002147;
  font-size: 28px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 33, 71, 0.2);
}


/* ================= TABLE ================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e1e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 6px 15px rgba(252, 186, 3, 0.3);
}

th, td {
  border: 3px solid #343a40;
  padding: 12px 15px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  border-radius: 10px;
}

th {
  background: rgb(252, 186, 3);
  color: #121212;
  font-size: 16px;
}

td {
  font-size: 14px;
  background: #222;
  color: white;
}

tr:nth-child(even) td {
  background-color: #1a1a1a;
}

tr:hover td {
  background-color: rgba(252, 186, 3, 0.15);
}


/* ================= HIGHLIGHT ================= */

.highlight {
  background-color: rgba(252, 186, 3, 0.6) !important;
  border: 5px solid lightblue !important;
}

.empty {
  background-color: #333;
}


/* ================= LINKS ================= */

a {
  display: inline-block;
  margin-top: 20px;
  color: #002147;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #002147;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

a:hover {
  background: rgb(252, 186, 3);
  color: #121212;
  border-color: rgb(252, 186, 3);
}


/* ================= NAVBAR ================= */

nav {
  background-color: #002147;
  color: white;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: white;
  border: none;
  font-weight: 500;
}

nav a:hover {
  color: rgb(252, 186, 3);
  background: none;
}


/* ================= MENU BUTTON ================= */

#menuBtn {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  z-index: 1000;
}


/* ================= MENU MODAL (SEPARATE) ================= */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 20px;
  width: 60%;
  border-radius: 8px;
  max-height: 70%;
  overflow-y: auto;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

#classList li {
  margin: 8px 0;
  line-height: 1.4;
}