* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: #e4e9f0;
  color: #1c1f26;
  margin: 0;
  padding: 24px;
}

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

h1 {
  margin: 0 0 20px;
  color: #1a3a5c;
  font-size: 26px;
  letter-spacing: 0.5px;
}

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

.dashboard-card {
  flex: 1;
  background: linear-gradient(155deg, #1f4e8c 0%, #163a6b 100%);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(22, 58, 107, 0.35);
}

.dashboard-card:nth-child(2) {
  background: linear-gradient(155deg, #2f7a4f 0%, #1f5c39 100%);
  box-shadow: 0 4px 10px rgba(31, 92, 57, 0.35);
}

.dashboard-card:nth-child(3) {
  background: linear-gradient(155deg, #c0622a 0%, #954a1e 100%);
  box-shadow: 0 4px 10px rgba(149, 74, 30, 0.35);
}

.dashboard-value {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
}

.dashboard-label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.latest-review {
  background: linear-gradient(155deg, #5b3a99 0%, #402a70 100%);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: 0 4px 10px rgba(64, 42, 112, 0.35);
}

.latest-review-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.75);
}

.latest-review-week {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.latest-review-comment {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  white-space: pre-wrap;
}

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

.panel {
  flex: 1;
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(28, 31, 38, 0.12);
  border-top: 4px solid #2c6fbb;
  min-width: 0;
}

.panel:nth-of-type(2) {
  border-top-color: #2f8f5c;
}

.panel h2 {
  margin-top: 0;
  color: #1a3a5c;
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e9ee;
}

.panel:nth-of-type(2) h2 {
  color: #1f5c39;
}

.review-panel {
  margin-top: 24px;
  border-top-color: #8a4fd1;
}

.review-panel h2 {
  color: #4a2f80;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #5a6472;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
  background: #f4f7fb;
  padding: 12px;
  border-radius: 8px;
}

.form input,
.form textarea {
  padding: 9px 10px;
  border: 1px solid #c7d0dc;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #2c6fbb;
  box-shadow: 0 0 0 3px rgba(44, 111, 187, 0.15);
}

.form button {
  padding: 9px 12px;
  border: none;
  border-radius: 5px;
  background: #2c6fbb;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.form button:hover {
  background: #1f5590;
}

.panel:nth-of-type(2) .form button {
  background: #2f8f5c;
}

.panel:nth-of-type(2) .form button:hover {
  background: #226b44;
}

.review-panel .form button {
  background: #6b3fa0;
}

.review-panel .form button:hover {
  background: #522f7d;
}

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

.item {
  border: 1px solid #dde3eb;
  border-left: 3px solid #2c6fbb;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fafcff;
  transition: box-shadow 0.15s ease;
}

.item:hover {
  box-shadow: 0 2px 6px rgba(28, 31, 38, 0.1);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.item-title {
  font-weight: bold;
  color: #1a3a5c;
}

.item-body {
  margin-top: 6px;
  white-space: pre-wrap;
  font-size: 14px;
  color: #444;
}

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

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left-color: #2f8f5c;
  background: #f9fcfa;
}

.task-item.done {
  border-left-color: #b7bfc9;
  background: #f1f2f4;
}

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

.task-item .toggle-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2f8f5c;
  cursor: pointer;
}

.task-text {
  flex: 1;
}

.task-actions button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
}

.task-actions .delete-btn {
  color: #c0392b;
  background: #fbeceb;
}

.task-actions .delete-btn:hover {
  background: #f5d3d0;
}

.review-item {
  border-left-color: #8a4fd1;
  background: #faf8fd;
}

.review-week {
  font-weight: bold;
  color: #4a2f80;
}

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