/* Todo Component Styles */
.input-row.todo-row {
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: stretch;
}

.todo-input {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  border-radius: 0;
  border: 1px solid var(--stroke);
  background: var(--input-bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  transition: border 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.todo-input:focus {
  border-color: rgba(176, 181, 188, 0.7);
  box-shadow: 0 0 0 2px rgba(176, 181, 188, 0.2);
  transform: translateY(-1px);
}

.todo-input.shake {
  animation: shake 0.3s ease;
}

.todo-time {
  min-width: 140px;
  height: 48px;
  padding: 0 12px;
  border-radius: 0;
  border: 1px solid var(--stroke);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.todo-time:focus {
  border-color: rgba(176, 181, 188, 0.7);
  box-shadow: 0 0 0 2px rgba(176, 181, 188, 0.2);
  transform: translateY(-1px);
}

.todo-time.shake {
  animation: shake 0.3s ease;
}

.todo-list {
  margin-top: 18px;
  border-top: 1px solid var(--stroke);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0 2px 0;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  background: var(--bubble-bg);
}

.todo-item.is-complete .todo-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.todo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.todo-text {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
  text-shadow: none;
}

.todo-time-label {
  font-size: 12px;
  color: var(--muted);
}

.todo-edit-input,
.todo-edit-time {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  border-radius: 0;
  border: 1px solid var(--stroke);
  background: var(--input-bg);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.todo-edit-time {
  max-width: 160px;
}

.todo-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.todo-action-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 0;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none;
  text-shadow: none;
}

.todo-action-btn:hover {
  filter: brightness(1.05);
}

.todo-action-btn.is-primary {
  border-color: var(--accent);
  color: var(--accent);
}

.todo-action-btn.is-danger {
  border-color: rgba(248, 113, 113, 0.7);
  color: rgba(248, 113, 113, 0.9);
}

.placeholder-text {
  color: var(--muted);
  font-style: italic;
}
