* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, #1e293b 0%, #0f172a 45%, #020617 100%);
  color: #f8fafc;
  min-height: 100vh;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 18px 80px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 12px;
  letter-spacing: -1px;
  color: white;
}

.disclaimer {
  margin-top: 16px;
  font-size: 13px;
  color: #94a3b8;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.confession-form {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 26px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

#confessionInput {
  width: 100%;
  min-height: 240px;
  padding: 24px 24px 42px;
  font-size: 18px;
  line-height: 1.7;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: white;
  outline: none;
  resize: vertical;
  transition: all 0.25s ease;
}

#confessionInput::placeholder {
  color: #94a3b8;
}

#confessionInput:focus {
  border-color: #60a5fa;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(96,165,250,0.12);
}

.delete-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 30px;
}

.option-pill {
  position: relative;
  cursor: pointer;
}

.option-pill input {
  position: absolute;
  opacity: 0;
}

.option-pill span {
  display: inline-block;
  padding: 15px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 15px;
  transition: all 0.2s ease;
}

.option-pill:hover span {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
}

.option-pill input:checked + span {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 10px 24px rgba(59,130,246,0.25);
}

.submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.submit-btn:active {
  transform: scale(0.98);
}

.char-count {
  font-size: 14px;
  color: #94a3b8;
}

#confessionsList {
  margin-top: 36px;
}

.confession {
  background: linear-gradient(180deg, rgba(30,41,59,0.82), rgba(15,23,42,0.92));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
  line-height: 1.8;
  color: #f1f5f9;
  font-size: 17px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
  animation: fadeInUp 0.45s ease;
}

.confession-text {
  margin: 0;
}

.confession-time {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: #94a3b8;
}

.empty-state {
  text-align: center;
  color: #94a3b8;
  margin-top: 30px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }

  #confessionInput {
    min-height: 200px;
    font-size: 16px;
  }

  .submit-btn {
    width: 100%;
    min-width: unset;
  }

  .delete-options {
    flex-direction: column;
  }

  .option-pill span {
    width: 100%;
    text-align: center;
  }
}
