* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #1f2937;
  min-height: 100vh;
  background-image: url("https://images.unsplash.com/photo-1534430480872-3498386e7856?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: background-image 2.5s ease-in-out;
}

.background-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 35, 0.45);
  z-index: -1;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.top-nav h3 {
  margin: 0;
  color: #1e3a8a;
}

.top-nav select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 15px;
}

.nav-btn {
  width: auto;
  margin: 0;
  padding: 10px 14px;
  font-size: 15px;
  background: linear-gradient(135deg, #991b1b, #ef4444);
}

.hero {
  padding: 45px 20px 70px;
  text-align: center;
  color: white;
}

.top-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.info-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 15px 25px;
  border-radius: 18px;
  min-width: 210px;
}

.info-box span {
  display: block;
  font-size: 14px;
  opacity: 0.85;
}

.info-box strong {
  font-size: 22px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}

h1 {
  font-size: 56px;
  margin: 10px 0;
}

.hero-text {
  max-width: 700px;
  margin: auto;
  font-size: 20px;
}

.encouragement-box {
  margin: 30px auto 0;
  max-width: 600px;
  padding: 18px 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 24px;
  font-weight: bold;
}

#encouragementText {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.layout {
  max-width: 1350px;
  margin: -35px auto 50px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 25px;
  align-items: start;
}

.form-card,
.summary-card,
.calendar-section,
.todo-card {
  background: rgba(255, 255, 255, 0.94);
  padding: 28px;
  margin-bottom: 25px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.todo-card {
  position: sticky;
  top: 90px;
}

h2 {
  margin-top: 0;
  color: #1e3a8a;
  font-size: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  margin-top: 14px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
}

button {
  margin-top: 25px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #14b8a6);
  color: white;
  font-size: 19px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.3);
}

.save-btn {
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.print-btn {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.calendar {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr);
  border: 2px solid #1e3a8a;
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

.calendar-header {
  background: #1e3a8a;
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
}

.week-label {
  background: linear-gradient(180deg, #22c55e, #14b8a6);
  color: white;
  padding: 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
}

.day-cell {
  min-height: 185px;
  padding: 10px;
  border-left: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
}

.date-label {
  font-weight: bold;
  color: #0f766e;
  margin-bottom: 8px;
}

.real-date {
  display: block;
  color: #334155;
  font-size: 13px;
  font-weight: normal;
  margin-top: 3px;
}

.task {
  background: #e0f2fe;
  border-left: 5px solid #2563eb;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.practice {
  background: #dcfce7;
  border-left-color: #16a34a;
}

.exam-day {
  background: linear-gradient(135deg, #fde68a, #fca5a5);
  border-left-color: #f59e0b;
  text-align: center;
  font-weight: bold;
}

.exam-star {
  margin-left: 6px;
}

.check-item {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.check-item input {
  width: auto;
  margin-right: 6px;
}

.calendar-placeholder {
  color: #64748b;
  padding: 30px;
  border: 2px dashed #bae6fd;
  border-radius: 16px;
  text-align: center;
}

.error {
  color: #dc2626;
  font-weight: bold;
}

.empty {
  background: #f8fafc;
}

.todo-input-row {
  display: flex;
  gap: 10px;
}

.todo-input-row input {
  flex: 1;
}

.todo-input-row button {
  width: auto;
  margin-top: 0;
  padding: 12px 16px;
  font-size: 15px;
}

#todoList {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

#todoList li {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-left: 5px solid #14b8a6;
}

#todoList input {
  width: auto;
}

@media print {
  body {
    background: white !important;
    color: black;
  }

  .background-overlay,
  .top-nav,
  .hero,
  .form-card,
  .todo-card,
  .no-print {
    display: none !important;
  }

  .layout {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .summary-card,
  .calendar-section {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 15px;
    background: white;
  }

  .calendar {
    grid-template-columns: 70px repeat(7, 1fr);
    font-size: 11px;
    page-break-inside: avoid;
  }

  .day-cell {
    min-height: 130px;
    padding: 6px;
  }

  .task {
    padding: 6px;
  }

  .check-item {
    font-size: 10px;
  }

  button {
    display: none;
  }
}

@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .todo-card {
    position: static;
  }
}

@media (max-width: 850px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .calendar-section {
    overflow-x: auto;
  }

  .calendar {
    grid-template-columns: 70px repeat(7, 170px);
  }

  h1 {
    font-size: 40px;
  }
}