:root {
  --todo-color-hover: #e8f4f3;
}

.todo-container {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.todo-list-panel,
.todo-tasks-panel {
  background: #f9f9f9;
  border: 1px solid #dae0e7;
  border-radius: 8px;
  padding: 20px;
  min-width: 300px;
  max-width: 500px;
}

.todo-list-panel {
  min-width: 300px;
  max-width: 20%;
}

.todo-tasks-panel {
  min-width: 60%;
  max-width: 78%;
}

.todo-list-panel h2,
.todo-tasks-panel h2 {
  margin-top: 0;
  color: var(--main-bg-color);
  border-bottom: 2px solid var(--main-bg-color);
  padding-bottom: 10px;
}

.todo-list-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.todo-button-container {
  display: inline-block;
  width: 100%;
}

.todo-button {
  display: inline-block;
  width: auto;
  padding: 12px 15px;
  margin: 8px 5px;
  background: white;
  border: 1px solid #dae0e7;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  font-size: 11pt;
  transition: all 0.2s ease;
  vertical-align: top;
}

.todo-button:hover {
  background: var(--todo-color-hover);
  border-color: var(--main-bg-color);
}

.todo-button.active {
  background: var(--main-bg-color);
  color: white;
  border-color: var(--main-bg-color);
}

.task-new {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.task-new input {
  width: 80%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding-left: 20px;
  padding-right: 20px;
}

.task-new .add-task-button {
  width: 10%;
  margin: auto;
  text-align: center;
}

.task-item {
  background: white;
  border: 1px solid #dae0e7;
  border-radius: 5px;
  padding: 12px 15px;
  margin: 8px 0;
  display: flex;
  flex-direction: row;
}

.task-item:hover {
  background: var(--todo-color-hover);
}

.task-item .task-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.task-item .task-label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.task-item .task-description {
  display: block;
  margin-top: 5px;
  font-size: 10pt;
  color: #666;
  margin-bottom: 5px;
  flex-grow: 1;
}

.task-check {
  align-self: flex-end;
  margin-top: 5px;
  cursor: pointer;
}

.task-actions {
  display: flex;
  text-align: right;
  gap: 10px;
  margin-top: 10px;
  flex-direction: row-reverse;
}

.task-item .task-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
}

.task-item .task-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

.no-tasks {
  color: #999;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

.task_complete {
  text-decoration: line-through;
  color: #999;
}

.task-inprogress {
  align-self: flex-end;
  margin-top: 5px;
  color: #666;
  font-style: italic;
  font-size: 10pt;
}
