* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  min-height: 100vh;
  background: #f0f2f5;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.todo-card {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.todo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.todo-header {
  /* display: flex;
  justify-content: space-between;
  align-items: center; */
  text-align: center;
  margin-bottom: 15px;
}

.todo-title {
  font-size: 2.5em;
  color: #011760;
  font-weight: 900;
  flex: 1;
}

.todo-toggle-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

[data-testid="test-todo-complete-toggle"] {
  width: 30px;
  height: 20px;
  cursor: pointer;
  border-radius: 10px;
  background: #ccc;
  margin-top: 4px;
}

.completed .todo-title {
  text-decoration: line-through;
  color: #999999;
  font-size: 1.5em;
}

[data-testid="test-todo-complete-label"] {
  font-size: 1.25em;
  color: #666666;
}

.completed .todo-description {
  color: #999999;
}

.todo-description {
  margin-bottom: 15px;
  font-size: 1.25em;
  text-align: center;
  color: #666666;
  line-height: 1.4;
  margin-bottom: 20px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid #eee;
  background-color: #f9fafc;
}

.todo-meta {
  width: 60%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-left: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

[data-testid="test-todo-priority"] {
  flex-basis: 44%;
  background: #fff7ef;
  color: #f97316;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
}

[data-testid="test-todo-status"] {
  flex-basis: 44%;
  background: #e0f2fe;
  color: #60038e;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
}

.dates-and-categories {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-left: 20px;
}

.due-date {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 20px;
}

[data-testid="test-todo-due-date"] {
  background: #fff7ef;
  color: #f97316;
  padding: 6px 20px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
}

[data-testid="test-todo-time-remaining"] {
  color: #333333;
  padding: 4px 8px;
  border-radius: 18px;
  font-size: 1em;
  font-weight: 600;
}

.overdue {
  background: #fee2e2;
  color: #dc2626;
}

.tags-section {
  padding-left: 20px;
}

[data-testid="test-todo-tags"] {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

[data-testid="test-todo-tags"] li {
  background: #ededed;
  color: #333333;
  padding: 6px 20px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
}

.todo-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.todo-actions button {
  cursor: pointer;
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.todo-actions button:hover {
  background-color: #f0f2f5;
}

[data-testid="test-todo-edit-button"] {
  background: #e0f2fe;
  color: #60038e;
}

[data-testid="test-todo-delete-button"] {
  background: #fee2e2;
  color: #dc2626;
}
