html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.search-box {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.search-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-search {
  background-color: #cc0000;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background-color: #aa0000;
}

.result-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.result-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ─────────────────────────────────────── */
.header-wrap {
  position: relative;
  padding: 0 40px;
}

/* ── Info Button ────────────────────────────────── */
.info-btn {
  position: absolute;
  top: 4px;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Info Modal ─────────────────────────────────── */
.info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

.info-modal-box {
  background: #1a1a1a;
  border: 1px solid rgba(204, 0, 0, 0.3);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  position: relative;
}

.info-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.info-modal-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

.info-modal-label {
  color: #6b7280;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.info-modal-class {
  color: #cc0000;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.info-modal-names {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.info-modal-names li {
  color: #d1d5db;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-modal-names li:last-child {
  border-bottom: none;
}

.info-modal-names .cohort {
  color: #6b7280;
  font-size: 0.8rem;
  margin-left: 4px;
}

.info-modal-school {
  color: #4b5563;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Easter Egg ─────────────────────────────────── */
.easter-egg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes dance {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-20px) rotate(10deg); }
  50%  { transform: translateY(0) rotate(0deg); }
  75%  { transform: translateY(-10px) rotate(-10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

.taco {
  animation: dance 1.5s infinite;
  font-size: 70px;
  display: inline-block;
  margin: 0 15px;
}

.taco:nth-child(2) { animation-delay: 0.2s; }
.taco:nth-child(3) { animation-delay: 0.4s; }
.taco:nth-child(4) { animation-delay: 0.6s; }
.taco:nth-child(5) { animation-delay: 0.8s; }

.taco-stage {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.lyrics {
  animation: bounce 1s infinite;
  display: inline-block;
}

/* ── Student name ───────────────────────────────── */
#studentName {
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Desktop Table ──────────────────────────────── */
.table-header {
  background-color: #cc0000;
  color: white;
  font-weight: bold;
}

.table-row {
  transition: all 0.2s ease;
}

.table-row:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.table-time {
  text-align: left;
  white-space: nowrap;
}

/* ── Mobile Cards ───────────────────────────────── */
.assignment-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.card-activity {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* Three-column: date left | time center | room right */
.card-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Two-column when no time: date left | room right */
.card-meta.no-time {
  grid-template-columns: 1fr 1fr;
}

.card-meta-date {
  text-align: left;
}

.card-meta-time {
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
}

.card-meta-room {
  text-align: right;
  color: #cc0000;
  font-weight: 600;
  white-space: nowrap;
}