:root {
  --green-50: #e8f5e9;
  --green-100: #c8e6c9;
  --green-200: #a5d6a7;
  --green-300: #81c784;
  --green-600: #2e7d32;
  --green-700: #1b5e20;
  --text-900: #0b2210;
  --bg-gradient: linear-gradient(160deg, var(--green-100), var(--green-200));
  --surface: #ffffff;
  --surface-secondary: #f1f8f1;
  --border: #a5d6a7;
  --text: #0b2210;
  --text-muted: #4a6d4e;
  --card-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] {
  --green-50: #1b2e1b;
  --green-100: #2d4a2d;
  --green-200: #3e663e;
  --green-300: #4f824f;
  --green-600: #81c784;
  --green-700: #a5d6a7;
  --text-900: #e8f5e9;
  --bg-gradient: linear-gradient(160deg, #0b1a0b, #1b2e1b);
  --surface: #1e1e1e;
  --surface-secondary: #2a2a2a;
  --border: #3e663e;
  --text: #e0e0e0;
  --text-muted: #a5d6a7;
  --card-bg: rgba(40, 40, 40, 0.95);
}

html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  padding: 0;
  background: var(--bg-gradient) fixed;
  color: var(--text);
  scrollbar-gutter: stable;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Onboarding Screen Styles */
.hidden-at-start {
  display: none !important;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.welcome-card {
  background: var(--surface);
  width: min(500px, 100%);
  padding: 2.5rem;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  text-align: center;
  margin: auto;
  transition: background 0.3s ease;
}

.welcome-header {
  margin-bottom: 2rem;
}

.welcome-logo {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.welcome-header h1 {
  font-size: 1.75rem;
  color: var(--green-700);
  margin: 0 0 0.5rem;
}

.welcome-header p {
  color: #666;
  margin: 0;
}

.onboarding-step {
  text-align: left;
  margin-bottom: 2rem;
}

.onboarding-step h3 {
  font-size: 1.1rem;
  color: var(--green-700);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--green-50);
  padding-bottom: 0.5rem;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--green-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:has(input:checked) {
  background: var(--green-50);
  border-color: var(--green-600);
  font-weight: 600;
}

.radio-option input {
  accent-color: var(--green-600);
}

.garden-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.garden-option {
  position: relative;
  cursor: pointer;
}

.garden-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: all 0.2s ease;
}

.option-icon {
  font-size: 1.75rem;
}

.option-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
}

.garden-option input:checked + .option-content {
  background: var(--green-50);
  border-color: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.garden-option:hover .option-content {
  border-color: var(--green-300);
  background: var(--surface-secondary);
}

.welcome-done-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--green-300), var(--green-600));
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.welcome-done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(46, 125, 50, 0.4);
  filter: brightness(1.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background 0.3s ease, border 0.3s ease;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--green-700);
}
.brand-icon {
  color: var(--green-600);
}

.header-widgets {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--green-700);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-widget:hover {
  background: var(--surface);
  border-color: var(--green-300);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-widget .icon {
  font-size: 1.1rem;
}

.chat-layout {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
  overflow-y: visible;
}
.app-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
  height: auto;
  overflow: visible;
}
.sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .75rem;
  padding: 1rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 90;
  transition: background 0.3s ease, border 0.3s ease;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.new-chat {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border-radius: 14px;
  border: 0;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--green-300), var(--green-600));
  box-shadow: 0 4px 15px color-mix(in oklab, var(--green-700), transparent 75%);
  cursor: pointer;
  transition: all 0.2s ease;
}
.new-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in oklab, var(--green-700), transparent 65%);
  filter: brightness(1.1);
}
.new-chat .icon {
  font-size: 1.2rem;
}
.clear-chat {
  height: 40px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--green-200), transparent 50%);
  color: var(--green-700);
  background: var(--surface-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}
.clear-chat:hover {
  background: var(--surface);
  border-color: var(--green-300);
}
.chat-list {
  display: grid;
  gap: .5rem;
  overflow: auto;
}
.chat-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .5rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-item:hover {
  background: var(--surface);
}
.chat-item.active {
  outline: 2px solid color-mix(in oklab, var(--green-600), white 30%);
}
.chat-item .title {
  font-weight: 600;
  color: var(--green-700);
}
.chat-item .meta {
  font-size: .8rem;
  color: color-mix(in oklab, var(--green-700), white 50%);
}
.chat-item .actions {
  display: inline-flex;
  gap: .4rem;
}
.chat-item .actions button {
  height: 28px;
  padding: 0 .6rem;
  border-radius: 8px;
  border: 1px solid color-mix(in oklab, var(--green-200), transparent 40%);
  background: var(--surface);
  color: var(--green-700);
  cursor: pointer;
}
.chat-item .actions button:hover {
  background: color-mix(in oklab, var(--green-50), white 70%);
}
.sidebar-actions {
  display: grid;
  gap: .5rem;
}
.chat-card {
  width: min(950px, 92vw);
  min-height: 60vh;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  transition: background 0.3s ease, border 0.3s ease;
}
.messages {
  padding: 1.25rem 1.25rem 0;
  display: grid;
  align-content: start;
  gap: 1rem;
  overflow-y: auto;
  scrollbar-width: thin;
}
.message {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: .75rem;
  align-items: start;
}
.avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--green-100), white 30%);
  color: var(--green-700);
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--green-200), transparent 30%);
  flex-shrink: 0;
}
.bubble {
  max-width: 85%;
  padding: .85rem 1.1rem;
  border-radius: 1.2rem;
  font-size: 1rem;
  line-height: 1.45;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  word-wrap: break-word;
  color: var(--text);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  border-top: 1px solid color-mix(in oklab, currentColor, transparent 85%);
  padding-top: 0.75rem;
}

.chip {
  background: var(--surface-secondary);
  border: 1px solid color-mix(in oklab, var(--green-200), transparent 40%);
  color: var(--green-700);
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.chip:hover {
  background: var(--surface);
  border-color: var(--green-300);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}
.typing {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
}
.typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--green-600), white 30%);
  animation: bounce 1s infinite ease-in-out;
}
.typing .dot:nth-child(2) {
  animation-delay: .2s;
}
.typing .dot:nth-child(3) {
  animation-delay: .4s;
}
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .7; }
  40% { transform: translateY(-6px); opacity: 1; }
}
.message.user .bubble {
  border-radius: 16px 16px 4px 16px;
  background: var(--green-100);
  color: var(--text-900);
}
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.input-row input {
  height: 54px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 1.1rem;
  font-size: 1rem;
  outline: none;
  background: var(--surface-secondary);
  color: var(--text);
  transition: all 0.2s ease;
}
.input-row input:focus {
  background: var(--surface);
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px var(--green-50);
}
.input-row input::placeholder {
  color: color-mix(in oklab, var(--green-700), white 75%);
}
.input-row button {
  height: 54px;
  padding: 0 1.2rem;
  border-radius: 16px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, var(--green-300), var(--green-600));
  box-shadow: 0 6px 18px color-mix(in oklab, var(--green-700), transparent 80%);
  cursor: pointer;
}
.input-row button:hover {
  filter: brightness(1.05);
}

@media (max-width: 900px) {
  .site-header {
    padding: .75rem 1rem;
  }
  .brand {
    gap: .5rem;
  }
  .topics-nav summary {
    padding: .4rem .7rem;
  }
  .app-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sidebar {
    grid-template-rows: auto 1fr auto;
    gap: .5rem;
    padding: .75rem;
    border-right: none;
    border-bottom: 1px solid color-mix(in oklab, var(--green-200), transparent 60%);
  }
  .new-chat,
  .clear-chat {
    height: 36px;
    padding: 0 .8rem;
    border-radius: 10px;
  }
  .chat-list {
    gap: .4rem;
  }
  .chat-item {
    padding: .5rem;
  }
  .chat-item .meta {
    display: none;
  }
  .chat-layout {
    padding: 1rem .75rem 2rem;
  }
  .chat-card {
    width: 100%;
    min-height: 60vh;
    border-radius: 18px;
  }
  .messages {
    padding: .75rem .75rem 0;
    gap: .75rem;
  }
  .message {
    grid-template-columns: 32px 1fr;
    gap: .5rem;
  }
  .avatar {
    width: 32px;
    height: 32px;
  }
  .bubble {
    padding: .75rem .85rem;
  }
  .input-row {
    gap: .5rem;
    padding: .75rem;
  }
  .input-row input {
    height: 44px;
    font-size: .95rem;
  }
  .input-row button {
    height: 44px;
    padding: 0 .9rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 1rem;
  }
  .chat-item .title {
    font-size: .95rem;
  }
  .input-row input::placeholder {
    font-size: .95rem;
  }
}

/* Sidebar Sections & Tool Buttons */
.sidebar-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--green-200), transparent 60%);
}

.sidebar-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
  color: var(--green-700);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.tool-btn:hover {
  background: var(--surface);
  border-color: var(--green-300);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tool-btn .icon {
  font-size: 1.2rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

/* Progress Bar Styles */
.progress-wrapper {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--green-700);
  font-size: 0.9rem;
}
.progress-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-300), var(--green-600));
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal {
  background: var(--surface);
  color: var(--text);
  border-radius: 24px;
  width: min(500px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 3000;
  display: none;
  flex-direction: column;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal.active {
  display: block;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: var(--green-700);
  font-size: 1.25rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--green-600);
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--green-700);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--green-200);
  outline: none;
}

.primary-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, var(--green-300), var(--green-600));
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}

.result-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: fadeIn 0.3s ease;
  color: var(--green-700);
  line-height: 1.6;
}

#journal-text {
  width: 100%;
  height: 300px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--surface-secondary);
  color: var(--text);
  line-height: 1.6;
}

#journal-text:focus {
  outline: 2px solid var(--green-300);
  background-color: var(--surface);
}

.hidden {
  display: none !important;
}

.result-box.hidden {
  display: none;
}

.days-badge {
  display: inline-block;
  background: var(--green-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.75rem 0;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.harvest-date-bubble {
  background: var(--surface);
  border: 2px solid var(--green-200);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

/* Task Checklist */
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-list li {
  margin-bottom: 0.75rem;
}

.task-list label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--green-50);
  cursor: pointer;
  transition: background 0.2s;
}

.task-list label:hover {
  background: var(--green-100);
}

.task-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green-600);
}

.task-list span {
  font-weight: 500;
  color: var(--green-700);
}

.hint {
  font-size: 0.85rem;
  color: color-mix(in oklab, var(--green-700), white 40%);
  text-align: center;
  margin-top: 1.5rem;
}

.modal-lg {
  max-width: 600px;
}

.urban-body {
  padding: 0;
}

.urban-chat-container {
  display: flex;
  flex-direction: column;
  height: 550px;
}

.urban-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--surface-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.urban-chips-wrapper {
  padding: 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.urban-chips-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.urban-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.urban-chip {
  padding: 0.4rem 0.8rem;
  background: var(--surface-secondary);
  border: 1px solid var(--green-300);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--green-700);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.urban-chip:hover {
  background: var(--surface);
  border-color: var(--green-600);
}

/* Problem Solver Styles */
.problem-body {
  padding: 0;
}

.problem-chat-container {
  display: flex;
  flex-direction: column;
  height: 550px;
}

.problem-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--surface-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-chips-wrapper {
  padding: 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.problem-chips-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.problem-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.problem-chip {
  padding: 0.4rem 0.8rem;
  background: var(--surface-secondary);
  border: 1px solid var(--green-300);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--green-700);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.problem-chip:hover {
  background: var(--surface);
  border-color: var(--green-600);
}

/* Growing Tips Game Styles */
.quiz-progress {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quiz-question {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-options.disabled {
  pointer-events: none;
}

.quiz-option-btn {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  color: var(--text-main);
}

.quiz-option-btn:hover {
  background: var(--green-50);
  border-color: var(--green-400);
}

.quiz-option-btn.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.quiz-option-btn.wrong {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.quiz-feedback {
  background: var(--surface-secondary);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.quiz-feedback p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-box {
  text-align: center;
  padding: 2rem;
}

.result-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.result-box p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Animations for messages */
.message {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
