* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: linear-gradient(160deg, #eef1fb 0%, #f7f4fb 45%, #fdf3f0 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 32px 24px 60px;
  color: #23263a;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- ヘッダー ---------- */
.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.app-icon {
  font-size: 40px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.35);
}

.app-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #4338ca, #a21caf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-subtitle {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
}

/* ---------- ダッシュボード ---------- */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.dashboard-stats {
  display: flex;
  gap: 18px;
}

.dash-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(76, 60, 140, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(76, 60, 140, 0.14);
}

.dash-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-notes .dash-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.dash-tasks .dash-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.dash-completed .dash-icon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.dash-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #23263a;
}

.dash-label {
  margin-top: 2px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 最新の振り返り ---------- */
.latest-review-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 4px solid #0d9488;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 10px 30px rgba(76, 60, 140, 0.08);
}

.latest-review-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 6px;
}

.latest-review-week {
  font-weight: 500;
  color: #6b7280;
  font-size: 12px;
}

.latest-review-comment {
  font-size: 14px;
  color: #23263a;
  white-space: pre-wrap;
  line-height: 1.6;
}

.latest-review-empty {
  font-size: 13px;
  color: #9ca3af;
}

/* ---------- パネル ---------- */
.columns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.panel {
  flex: 1;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(76, 60, 140, 0.08);
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-icon {
  font-size: 18px;
}

/* ---------- フォーム ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.form input,
.form textarea {
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: #fbfbfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: #fff;
}

.form button {
  align-self: flex-start;
  padding: 10px 22px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(99, 69, 226, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 69, 226, 0.4);
}

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

.panel-tasks .form button {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.panel-tasks .form button:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.panel-reviews .form button {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.panel-reviews .form button:hover {
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

.field-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: -4px;
}

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

.list::-webkit-scrollbar {
  width: 6px;
}

.list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.item {
  background: #f5f4fd;
  border: 1px solid #e9e7fb;
  border-left: 4px solid #8b5cf6;
  border-radius: 12px;
  padding: 12px 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(76, 60, 140, 0.1);
  background: #f0eefd;
}

.panel-tasks .item {
  background: #eff6ff;
  border-color: #dbeafe;
  border-left-color: #2563eb;
}

.panel-tasks .item:hover {
  background: #e6f1ff;
}

.panel-reviews .item {
  background: #f0fdfa;
  border-color: #ccfbf1;
  border-left-color: #0d9488;
}

.panel-reviews .item:hover {
  background: #e6fbf7;
}

.item-title {
  font-weight: 700;
  font-size: 14.5px;
}

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

.item-meta {
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 4px;
}

.item-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.item-actions button {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.item-actions button:hover {
  background: #f3f4f6;
}

.item-actions .toggle-task:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.item-actions .delete-note:hover,
.item-actions .delete-task:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.item.completed {
  background: #f3f4f6;
  border-left-color: #9ca3af;
}

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

/* ---------- バッジ ---------- */
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge.done {
  background: #dcfce7;
  color: #16a34a;
}

.badge.pending {
  background: #fef3c7;
  color: #b45309;
}

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