body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #f7f9fa 60%, #e0f2fe 100%);
  margin: 0;
  padding: 0;
}
.app-container {
  max-width: 540px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(79,140,255,0.10);
  padding: 36px 28px 28px 28px;
}
h1 {
  text-align: center;
  color: #2563eb;
  margin-bottom: 28px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
#category-select-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(79,140,255,0.06);
  padding: 18px 12px 16px 12px;
  margin-bottom: 18px;
}
#category-select, #start-btn, #next-btn, #review-btn, #restart-btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1.5px solid #b0b8c1;
  background: #e3eaf1;
  color: #2d3a4b;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
}
#category-select:focus, #start-btn:focus, #next-btn:focus, #review-btn:focus, #restart-btn:focus {
  outline: 2.5px solid #4f8cff;
  box-shadow: 0 0 0 2px #b6d4fe;
}
#category-select:active, #start-btn:active, #next-btn:active, #review-btn:active, #restart-btn:active {
  background: #dbeafe;
  border-color: #4f8cff;
}
#quiz-section, #result-section {
  background: #f9fafb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(79,140,255,0.10);
  padding: 28px 18px 22px 18px;
  max-width: 440px;
  margin: 28px auto 0 auto;
}
#progress-bar {
  height: 10px;
  background: #e3eaf1;
  border-radius: 5px;
  margin-bottom: 18px;
  overflow: hidden;
}
#progress-bar > div {
  height: 100%;
  background: #4f8cff;
  width: 0%;
  transition: width 0.3s;
}
#question-container {
  font-size: 1.18rem;
  margin-bottom: 18px;
  color: #2d3a4b;
  font-weight: 600;
}
#options-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.option-btn {
  background: #f1f5f9;
  border: 1.5px solid #b0b8c1;
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 1.08rem;
  text-align: left;
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
  color: #1a202c;
  font-weight: 500;
}
.option-btn.selected {
  background: #dbeafe;
  border-color: #4f8cff;
}
.option-btn.correct {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}
.option-btn.incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}
.option-btn:focus {
  outline: 2.5px solid #4f8cff;
  box-shadow: 0 0 0 2px #b6d4fe;
}
#explanation {
  margin-top: 16px;
  background: #f9fafb;
  border-left: 4px solid #4f8cff;
  padding: 12px 16px;
  border-radius: 6px;
  color: #374151;
  font-size: 1.05rem;
}
#result-section {
  text-align: center;
  margin-top: 32px;
}
#review-section {
  margin-top: 24px;
  text-align: left;
  font-size: 1.05rem;
  background: #e0e7ef;
  border-radius: 8px;
  padding: 14px 10px;
}
@media (max-width: 700px) {
  .app-container {
    max-width: 99vw;
    padding: 6vw 2vw 6vw 2vw;
  }
  h1 {
    font-size: 1.25rem;
  }
  #question-container {
    font-size: 1.05rem;
  }
  #options-container {
    gap: 10px;
  }
  .option-btn {
    font-size: 1rem;
    padding: 13px 10px;
  }
  #mocktest-setup, #quiz-section, #result-section {
    max-width: 99vw;
    padding: 6vw 2vw 6vw 2vw;
  }
}
@media (max-width: 480px) {
  .app-container {
    padding: 4vw 1vw 4vw 1vw;
    border-radius: 0;
    box-shadow: none;
  }
  h1 {
    font-size: 1.05rem;
  }
  #category-select, #start-btn, #next-btn, #review-btn, #restart-btn {
    font-size: 0.98rem;
    padding: 10px 8px;
  }
  #explanation {
    font-size: 0.95rem;
    padding: 10px 8px;
  }
  #review-section {
    font-size: 0.95rem;
  }
  #mocktest-setup, #quiz-section, #result-section {
    padding: 4vw 1vw 4vw 1vw;
    border-radius: 0;
    box-shadow: none;
  }
  #mock-category-list {
    font-size: 0.95rem;
  }
  #start-mock-btn, #cancel-mock-btn {
    font-size: 0.95rem;
    padding: 10px 8px;
  }
}
:root {
  --focus-outline: #4f8cff;
  --correct: #10b981;
  --incorrect: #ef4444;
  --option-bg: #f1f5f9;
  --option-selected: #dbeafe;
  --option-correct: #d1fae5;
  --option-incorrect: #fee2e2;
}
#mocktest-btn {
  margin-top: 0;
  margin-left: 8px;
  font-weight: 600;
  font-size: 1.13rem;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #4f8cff 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(79,140,255,0.13);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  letter-spacing: 0.5px;
}
#mocktest-btn:hover, #mocktest-btn:focus {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 4px 18px rgba(79,140,255,0.18);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
@media (max-width: 700px) {
  #mocktest-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    font-size: 1.05rem;
    padding: 12px 0;
  }
}
@media (max-width: 480px) {
  #mocktest-btn {
    font-size: 0.98rem;
    padding: 10px 0;
  }
}
#mocktest-setup {
  background: #f9fafb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(79,140,255,0.10);
  padding: 28px 18px 22px 18px;
  max-width: 440px;
  margin: 28px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#mocktest-setup h2 {
  color: #1e293b;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}
#mock-category-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #e0e7ef;
  border-radius: 8px;
  padding: 10px 8px;
  box-shadow: 0 1px 4px rgba(79,140,255,0.06);
  margin-bottom: 8px;
}
.mock-category-checkbox {
  accent-color: #4f8cff;
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
#mock-category-list label {
  font-size: 1.05rem;
  color: #1e293b;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
#mock-category-list label:hover, #mock-category-list label:focus-within {
  background: #dbeafe;
  box-shadow: 0 0 0 2px #4f8cff33;
}
#mock-total-questions {
  color: #2563eb;
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
#mock-question-count {
  border-radius: 8px;
  border: 1.5px solid #b0b8c1;
  padding: 8px 12px;
  font-size: 1.08rem;
  background: #f1f5f9;
  margin-bottom: 8px;
  width: 90px;
  text-align: center;
}
#start-mock-btn, #cancel-mock-btn {
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #4f8cff 0%, #38bdf8 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(79,140,255,0.10);
}
#start-mock-btn:hover, #start-mock-btn:focus, #cancel-mock-btn:hover, #cancel-mock-btn:focus {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 4px 18px rgba(79,140,255,0.18);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
#cancel-mock-btn {
  background: #e3eaf1;
  color: #2563eb;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 0;
  box-shadow: none;
  border: 1.5px solid #b0b8c1;
}
#cancel-mock-btn:hover, #cancel-mock-btn:focus {
  background: #dbeafe;
  color: #1e293b;
  border-color: #4f8cff;
}
#mock-category-dropdown {
  width: 100%;
  position: relative;
  margin-bottom: 8px;
  outline: none;
}
.dropdown-box {
  background: #e0e7ef;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1.08rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #b0b8c1;
  transition: border 0.18s, box-shadow 0.18s;
  min-height: 44px;
}
.dropdown-box:focus, #mock-category-dropdown:focus .dropdown-box {
  border: 2px solid #4f8cff;
  box-shadow: 0 0 0 2px #b6d4fe;
}
.dropdown-arrow {
  font-size: 1.2em;
  margin-left: 8px;
  color: #2563eb;
}
.dropdown-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(79,140,255,0.13);
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
  border: 1.5px solid #b0b8c1;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-option {
  padding: 12px 16px;
  font-size: 1.05rem;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid #e5e7eb;
}
.dropdown-option:last-child {
  border-bottom: none;
}
.dropdown-option.selected {
  background: #dbeafe;
  color: #2563eb;
  font-weight: 600;
}
.dropdown-option:hover, .dropdown-option:focus {
  background: #e0f2fe;
  color: #2563eb;
}
#mock-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 8px;
}
.mock-tag {
  background: #dbeafe;
  color: #2563eb;
  border-radius: 16px;
  padding: 6px 14px 6px 10px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 2px;
  box-shadow: 0 1px 4px rgba(79,140,255,0.07);
}
.mock-tag-remove {
  margin-left: 8px;
  font-size: 1.1em;
  color: #ef4444;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.15s;
}
.mock-tag-remove:hover {
  color: #b91c1c;
}
@media (max-width: 700px) {
  #mock-category-dropdown, .dropdown-box, .dropdown-options {
    font-size: 1rem;
  }
  .dropdown-options {
    max-height: 180px;
  }
}
@media (max-width: 480px) {
  #mock-category-dropdown, .dropdown-box, .dropdown-options {
    font-size: 0.97rem;
  }
  .dropdown-options {
    max-height: 120px;
  }
  .mock-tag {
    font-size: 0.93rem;
    padding: 5px 10px 5px 8px;
  }
} 