* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #eef1f6 0%, #e9ecf3 100%);
  color: #1f2328;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: #111827;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.card-value {
  font-size: 30px;
  font-weight: 700;
  color: #2563eb;
  font-variant-numeric: tabular-nums;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.reflection-highlight {
  margin-bottom: 28px;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.reflection-highlight .item-body {
  font-size: 14px;
  color: #1f2328;
}

.reflection-highlight .item-meta {
  font-weight: 600;
  color: #2563eb;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.form input,
.form textarea {
  padding: 10px 12px;
  border: 1px solid #d8dbe0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: #fafafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form button {
  align-self: flex-start;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.form button:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.form button:active {
  transform: translateY(1px);
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: -4px;
}

.form select {
  padding: 10px 12px;
  border: 1px solid #d8dbe0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafb;
}

.category-manager {
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f9fafb;
}

.category-manager summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.category-manager .form {
  margin-top: 12px;
  margin-bottom: 12px;
}

.category-manager .form:last-child {
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b7280;
}

.filter-row select {
  padding: 6px 10px;
  border: 1px solid #d8dbe0;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafb;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.item {
  background: #f8f9fb;
  border: 1px solid #e2e4ea;
  border-radius: 10px;
  padding: 12px 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.item:hover {
  background: #f0f2f6;
  border-color: #d8dbe2;
}

.item-title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.item-body {
  font-size: 13px;
  color: #4b5563;
  white-space: pre-wrap;
  margin: 4px 0;
  line-height: 1.5;
}

.item-meta {
  font-size: 11px;
  color: #9ca3af;
}

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

.task-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.task-item .task-title {
  flex: 1;
  font-size: 14px;
  color: #1f2328;
}

.task-item.done {
  background: #f3f4f6;
}

.task-item.done .task-title {
  text-decoration: line-through;
  color: #9ca3af;
}

.task-item .task-category-select {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 24px 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
}

.task-item.done .task-category-select {
  color: #9ca3af;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.task-item .task-meta {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.reflection-item {
  position: relative;
}

.reflection-item button {
  border: none;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  margin-top: 8px;
}

.reflection-item button:hover {
  background: #dc2626;
  color: #fff;
}

.task-item button {
  border: none;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.task-item button:hover {
  background: #dc2626;
  color: #fff;
}

.empty {
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
}
