:root {
  --primary: #2563eb;
  --bg: #f1f5f9;
  --sidebar-bg: #1e293b;
  --card-bg: #ffffff;
  --text: #334155;
  --correct-bg: #dcfce7;
  --correct-border: #22c55e;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  color: white;
  padding: 20px;
  flex-shrink: 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--primary);
}

.logo span {
  color: white;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #cbd5e1;
  padding: 12px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 6px;
  transition: 0.2s;
}

.sidebar li button:hover,
.sidebar li button.active {
  background: var(--primary);
  color: white;
}

/* Main Content */
main {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
}

header {
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
}

h1 {
  margin: 0 0 10px 0;
  color: #0f172a;
}

.date-badge {
  display: inline-block;
  background: #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

/* Quiz Cards */
.quiz-grid {
  display: grid;
  gap: 20px;
  max-width: 900px;
}

.question-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.question-text {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Options Styling */
.options-list {
  list-style: none;
  padding: 0;
}

.option {
  padding: 10px 15px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Highlight the Correct Answer */
.option.correct {
  background-color: var(--correct-bg);
  border-color: var(--correct-border);
  color: #14532d;
  font-weight: 600;
  position: relative;
}

.option.correct::after {
  content: "✓";
  position: absolute;
  right: 15px;
  font-weight: bold;
}

/* Footer Styling */
.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  /* Pushes footer to bottom if using flexbox */
  background: var(--sidebar-bg);
  /* Matches sidebar color */
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.site-footer strong {
  color: white;
}

/* Red Heart Animation */
.heart {
  color: #e25555;
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Ensure the layout pushes the footer down */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout {
  flex: 1;
  /* Makes the main content expand to fill space */
}