/* SemesterSync Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; color: #222; background: #fff; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1.5rem 1rem 1rem; }
.site-header h1 { margin: 0 0 0.25rem; font-size: 1.75rem; font-weight: 600; }
.site-header .tagline { margin: 0 0 1rem; opacity: 0.9; font-size: 0.9rem; }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: white; font-weight: 500; }
main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
h2 { margin-top: 2rem; font-size: 1.25rem; color: #1a1a1a; }
h3 { font-size: 1rem; margin: 0.5rem 0 1rem; color: #333; }
.exam-form { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.form-row { display: grid; gap: 0.5rem; }
.form-row label { font-size: 0.85rem; font-weight: 500; }
.form-row input, .form-row select { padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.9rem; }
.difficulty-row select { padding-right: 2rem; }
.add-btn { background: #2563eb; color: white; border: none; padding: 0.75rem 1.25rem; border-radius: 6px; cursor: pointer; font-weight: 500; }
.add-btn:hover { background: #1d4ed8; }
.exam-list { margin-top: 0.5rem; }
.exams { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.exam-item { display: flex; align-items: center; justify-content: space-between; background: #f9fafb; padding: 0.75rem 1rem; border-radius: 6px; border-left: 4px solid #667eea; }
.exam-item .subject { font-weight: 500; }
.exam-item .date { font-size: 0.85rem; color: #666; }
.exam-item .difficulty { color: #f59e0b; }
.remove-btn { background: none; border: none; color: #666; font-size: 1.25rem; cursor: pointer; padding: 0 0 0 0.5rem; }
.remove-btn:hover { color: #ef4444; }
.help-text { font-size: 0.85rem; color: #666; margin: 0 0 1rem; }
.energy-options { display: grid; gap: 0.75rem; }
.energy-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: #f9fafb; border-radius: 6px; border: 2px solid #e5e7eb; }
.energy-option input { margin: 0; }
.energy-label { font-size: 0.9rem; }
.energy-label small { display: block; color: #666; font-size: 0.75rem; }
.energy-option:hover { border-color: #667eea; }
.controls { display: flex; gap: 0.75rem; margin: 1rem 0; }
.primary-btn { background: #2563eb; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; font-weight: 500; }
.primary-btn:hover { background: #1d4ed8; }
.secondary-btn { background: #6b7280; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; }
.secondary-btn:hover { background: #4b5563; }
.tertiary-btn { background: none; color: #2563eb; border: 1px solid #2563eb; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; }
.tertiary-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.calendar { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.calendar-day { background: #f9fafb; border-radius: 8px; padding: 1rem; }
.calendar-day h3 { margin-top: 0; font-size: 1rem; text-align: center; color: #374151; }
.blocks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.block { padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.85rem; position: relative; cursor: pointer; }
.block:hover { background: #f3f4f6; }
.block-hard { background: #fee2e2; border-left: 3px solid #ef4444; }
.block-medium { background: #fef3c7; border-left: 3px solid #f59e0b; }
.block-easy { background: #d1fae5; border-left: 3px solid #10b981; }
.block-break { background: #e5e7eb; border-left: 3px solid #6b7280; }
.block-time { font-weight: 600; color: #374151; }
.block-subject { margin-left: 0.5rem; }
.block-duration { font-size: 0.8rem; color: #666; }
.complete-btn { position: absolute; top: 4px; right: 6px; background: #10b981; color: white; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 0.8rem; }
.complete-btn:hover { background: #059669; }
.progress-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); text-align: center; margin: 1rem 0; }
.stat-value { font-size: 1.5rem; font-weight: 600; color: #2563eb; }
.stat-label { font-size: 0.75rem; color: #666; }
.progress-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin: 0.5rem 0; }
.progress-fill { height: 100%; background: #2563eb; }
.info-section { margin-top: 2rem; padding: 1rem; background: #f9fafb; border-radius: 8px; }
.info-section h2 { margin-top: 0; font-size: 1.1rem; }
.info-section h3 { font-size: 1rem; margin-top: 1.5rem; color: #1a1a1a; }
.mistakes-list, .tips-list { padding-left: 1.5rem; }
.mistakes-list li, .tips-list li { margin-bottom: 0.5rem; }
.mistakes-list strong, .tips-list strong { color: #dc2626; }
.site-footer { background: #f3f4f6; padding: 1rem; text-align: center; font-size: 0.85rem; color: #666; margin-top: 3rem; }
.footer-links a { font-size: 0.85rem; }
@media (max-width: 600px) {
  .site-header h1 { font-size: 1.5rem; }
  .calendar { grid-template-columns: 1fr; }
  .controls { flex-direction: column; }
  .exam-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .info-section { padding: 0.75rem; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
