/* Copyright 2026 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #import=//resources/cr_elements/cr_shared_vars.css.js
 * #scheme=relative
 * #css_wrapper_metadata_end */

:host {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

#back-button {
  margin-inline-start: -8px;
}

h1 {
  color: var(--cr-primary-text-color);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.columns-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.todo-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  margin-bottom: 20px;
}

.refresh-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.refresh-container cr-icon-button {
  --cr-icon-button-margin-start: 0;
  --cr-icon-button-margin-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.last-updated-text {
  color: var(--cr-secondary-text-color);
  font-size: 13px;
}

h2 {
  color: var(--cr-primary-text-color);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.category-header h3 {
  color: var(--cr-primary-text-color);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.completed-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.completed-expand-button {
  min-height: 36px;
  padding: 0;
  --cr-section-min-height: 36px;
  --cr-section-vertical-padding: 0;
  --cr-section-padding: 0;
}

.completed-expand-button h2 {
  color: var(--cr-primary-text-color);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.completed-todo-list {
  padding-top: 20px;
}

.placeholder-card {
  padding: 32px 20px;
  border-radius: var(--cr-card-border-radius, 16px);
  border: 1px solid var(--cr-separator-color);
  box-shadow: none;
  background-color: var(--cr-card-background-color);
  text-align: center;
  box-sizing: border-box;
}

.placeholder-text {
  color: var(--cr-secondary-text-color);
  font-size: 14px;
  margin: 0;
}

.error-text {
  color: var(--cr-destructive-color);
}
