/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* ── Background ── */
.app-bg {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #EFF6FF, #EEF2FF, #F5F3FF);
}

/* ── Container ── */
.container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Desktop: add shadow to make it feel like a card */
@media (min-width: 480px) {
  .app-bg {
    padding: 2rem 1rem;
  }
  .container {
    min-height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }
}

/* ── Header ── */
.header {
  padding: 3rem 1.5rem 2rem;
}

.heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.2;
}

.date {
  font-size: 1rem;
  color: #6B7280;
  margin-top: 0.5rem;
}

/* ── Content ── */
.content {
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Section Labels ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-label h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sparkles {
  color: #60A5FA;
}

.icon-heart {
  color: #818CF8;
}

/* ── Task List ── */
.task-list,
.reminder-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Task Items ── */
.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.8), rgba(224, 231, 255, 0.8));
  border-radius: 0.75rem;
  border: 2px solid rgba(147, 197, 253, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  min-height: 3.5rem;
}

.task-item:active {
  transform: scale(0.98);
}

.task-item.done {
  opacity: 0.7;
}

.task-check {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.task-check--empty {
  color: #60A5FA;
}

.task-check--done {
  color: #2563EB;
}

.task-text {
  font-size: 1.125rem;
  color: #1F2937;
  line-height: 1.4;
}

.task-item.done .task-text {
  color: rgba(37, 99, 235, 0.6);
  text-decoration: line-through;
}

/* ── Reminder Items ── */
.reminder-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.25rem 0.25rem;
}

.reminder-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #818CF8;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.reminder-text {
  font-size: 1.125rem;
  color: #1F2937;
  line-height: 1.4;
}

/* ── Empty States ── */
.empty-message {
  font-size: 1rem;
  color: #9CA3AF;
  font-style: italic;
  padding: 0.5rem 0;
}

/* ── Login Page ── */
.app-bg:has(.login-page) {
  padding: 0;
}

.container:has(.login-page) {
  max-width: none;
  min-height: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 1.5rem;
  overflow: hidden;
}

.login-wrapper {
  width: 100%;
  max-width: 24rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  color: #6B7280;
  font-size: 1rem;
}

.login-subtitle .icon {
  width: 1rem;
  height: 1rem;
  color: #818CF8;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(165, 180, 252, 0.5);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #1F2937;
  outline: none;
  transition: border-color 0.2s ease;
}

.login-input:focus {
  border-color: #818CF8;
}

.login-button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(135deg, #60A5FA, #6366F1);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:hover {
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.login-button:active {
  transform: scale(0.98);
}

.login-error {
  font-size: 0.875rem;
  color: #EF4444;
  text-align: center;
}

