*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
ul,
li,
button,
input {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

button,
input {
  font: inherit;
}

.body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, #3e3e3e 0%, #1f1f1f 45%, #141414 100%);
  font-family: Arial, sans-serif;
}

.body__todo {
  width: 100%;
  max-width: 500px;
}

.todo {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 24px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.todo__title {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

.todo__new-task {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.todo__input {
  flex-grow: 1;
  min-width: 0;
  height: 52px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background-color: #2a2a2a;
  color: #ffffff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.todo__input::placeholder {
  color: #9f9f9f;
}

.todo__input:focus {
  border-color: #7c5cff;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2);
  background-color: #313131;
}

.todo__button {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c5cff 0%, #5a3df0 100%);
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  box-shadow: 0 10px 20px rgba(92, 61, 240, 0.35);
}

.todo__button::before {
  content: "+";
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.todo__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(92, 61, 240, 0.45);
}

.todo__button:active {
  transform: translateY(0);
  opacity: 0.9;
}

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

.todo__task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background-color: #252525;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.todo__task-text {
  flex-grow: 1;
  min-width: 0;
  word-break: break-word;
}

.todo__task--completed .todo__task-text {
  text-decoration: line-through;
  color: #9f9f9f;
}

.todo__task-actions {
  display: flex;
  gap: 8px;
}

.todo__task-action {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.todo__task-action:hover {
  opacity: 0.9;
}

.todo__task-action--toggle {
  background-color: #2c7a5a;
}

.todo__task-action--delete {
  background-color: #813737;
}
