* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: linear-gradient(135deg, #fff1f7 0%, #eef4ff 50%, #fffbe8 100%);
  color: #333;
  position: relative;
  overflow-x: hidden;
}

/* ---- floating background blobs ---- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -80px;
  background: #ffc2dd;
}

.blob-2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  right: -60px;
  background: #b9d8ff;
  animation-delay: -4s;
}

.blob-3 {
  width: 240px;
  height: 240px;
  top: 40%;
  right: 10%;
  background: #fff2ad;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-30px) translateX(20px) scale(1.08); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 {
  text-align: center;
  margin-bottom: 4px;
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(90deg, #ff6fa3, #6f9dff, #ffb454);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wave {
  display: inline-block;
  animation: wave 2.2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(0deg); }
}

.sparkle {
  display: inline-block;
  animation: sparkle 1.8s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.3) rotate(15deg); opacity: 0.7; }
}

.subtitle {
  text-align: center;
  margin: 0 0 28px;
  color: #888;
  font-size: 14px;
  font-weight: 500;
}

.dashboard {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  flex: 1;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card-pink { background: linear-gradient(160deg, #ffe1ee, #ffffff); }
.card-blue { background: linear-gradient(160deg, #dfeaff, #ffffff); }
.card-yellow { background: linear-gradient(160deg, #fff3c4, #ffffff); }

.stat-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: #4a4a4a;
}

.stat-label {
  margin-top: 2px;
  font-size: 13px;
  color: #777;
  font-weight: 500;
}

.columns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.column {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-top: 5px solid transparent;
  transition: box-shadow 0.2s ease;
}

.panel:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.panel-pink { border-top-color: #ff8fbd; }
.panel-blue { border-top-color: #7fb0ff; }
.panel-purple { border-top-color: #b18fff; }

.latest-reflection {
  margin-bottom: 32px;
  background: linear-gradient(160deg, #f2e9ff, #ffffff);
}

.reflection-highlight .reflection-week {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #7c5cff;
  background: #ece3ff;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.reflection-highlight .reflection-comment {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.reflection-highlight .item-meta {
  margin-top: 8px;
}

.panel h2 {
  margin-top: 0;
  font-size: 17px;
  font-weight: 700;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="text"],
textarea {
  padding: 10px 14px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: #fafafa;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #ffb3d1;
  background: #fff;
}

button {
  align-self: flex-start;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:hover {
  transform: translateY(-2px) scale(1.03);
}

button:active {
  transform: translateY(0) scale(0.98);
}

.btn-pink { background: linear-gradient(90deg, #ff8fbd, #ff6fa3); }
.btn-blue { background: linear-gradient(90deg, #7fb0ff, #5c8dff); }
.btn-purple { background: linear-gradient(90deg, #b18fff, #8f6fff); }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

.list-item {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fbfbfd;
  border: 1px solid #f0f0f4;
  animation: pop-in 0.25s ease;
}

.list-item:last-child {
  margin-bottom: 0;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.item-title {
  font-weight: 700;
  word-break: break-word;
}

.item-body {
  margin-top: 4px;
  font-size: 14px;
  color: #555;
  white-space: pre-wrap;
  word-break: break-word;
}

.item-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #a0a0a0;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.task-item .task-main {
  flex: 1;
}

.task-title.done {
  text-decoration: line-through;
  color: #b6b6b6;
}

.task-actions {
  display: flex;
  gap: 6px;
}

.task-actions button {
  padding: 6px 12px;
  font-size: 12px;
  box-shadow: none;
}

.btn-toggle {
  background: linear-gradient(90deg, #7fe0c0, #4cc9a0);
}

.btn-delete {
  background: linear-gradient(90deg, #ff9d9d, #ff6b6b);
}

.empty {
  color: #b0b0b0;
  font-size: 14px;
  padding: 12px 0;
  text-align: center;
}

@media (max-width: 640px) {
  .dashboard {
    flex-direction: column;
  }
}
