* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f6fb;
  color: #222;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #1a237e;
  color: #fff;
}
.logo {
  font-weight: 600;
}
.main-nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover {
  text-decoration: underline;
}
.app-main {
  max-width: 960px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}
.hero h1 {
  margin-bottom: 0.25rem;
}
.hero p {
  margin-top: 0.25rem;
  color: #555;
}
.dashboard-grid, .planner-summary, .subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.cta-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #1a237e;
  text-decoration: none;
  font-weight: 500;
}
.cta-link:hover {
  text-decoration: underline;
}
.app-footer {
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid #ddd;
  background: #fff;
}
.exam-facts {
  list-style: disc;
  padding-left: 1.25rem;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.chip {
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #e8eaf6;
  color: #1a237e;
  cursor: pointer;
  font-size: 0.85rem;
}
.chip.active {
  background: #1a237e;
  color: #fff;
}
.chip-secondary {
  background: #ffebee;
  color: #c62828;
}
.syllabus-block {
  margin-top: 1.25rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.syllabus-block ul {
  padding-left: 1.25rem;
}
.hidden {
  display: none;
}
.subject-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.task-list {
  list-style: none;
  padding-left: 0;
}
.task-list li {
  margin-top: 0.5rem;
}
.progress-bar {
  width: 100%;
  height: 0.6rem;
  border-radius: 999px;
  background: #e0e0e0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #43a047;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.schedule-table th, .schedule-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  font-size: 0.9rem;
}
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #856404;
  font-size: 0.8rem;
}
.hint {
  font-size: 0.85rem;
  color: #777;
}
textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
}
button {
  cursor: pointer;
}
#saveJournalBtn, .mode-btn, #submitTestBtn {
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  border: none;
  background: #1a237e;
  color: #fff;
}
.mode-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.quiz-container {
  margin-top: 1.25rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.question-card {
  margin-bottom: 0.75rem;
}
.question-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.question-number {
  font-weight: 600;
}
.question-subject-tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  background: #e3f2fd;
  color: #1565c0;
}
.options-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.option-btn {
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 0.4rem;
  text-align: left;
}
.option-btn.selected {
  border-color: #1a237e;
  background: #e8eaf6;
}
.test-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}
.result-summary {
  margin-top: 1.5rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.topic-breakdown ul {
  list-style: disc;
  padding-left: 1.25rem;
}
@media (max-width: 600px) {
  .options-list {
    grid-template-columns: 1fr;
  }
}
