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

body {
  font-family: Roboto, sans-serif;
  background-color: #f1f5f9;
}

#app {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px;
}

#header h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.add-task {
  margin-bottom: 20px;
}
.add-task label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}
.add-task input {
  display: inline-block;
  width: 300px;
  padding: 8px 16px;
  margin-right: 12px;
  border: 1px solid #475569;
  border-radius: 4px;
}
.add-task button {
  padding: 8px 16px;
  border: 1px solid #1d4ed8;
  border-radius: 4px;
  background-color: #2563eb;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 250ms ease-in-out;
}
.add-task button:hover {
  background-color: #1d4ed8;
}

main {
  display: flex;
  gap: 20px;
}
main > * {
  flex: 1;
  padding: 20px;
  border: 1px solid #64748b;
}
main > * h2 {
  margin-bottom: 20px;
  text-align: center;
}
main > * h2 .count {
  color: #1d4ed8;
}

:root {
  --delete-duration: 500ms;
}

@keyframes delete-task {
  from {
    opacity: 1;
    max-height: 1000px;
  }
  100% {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}
.task {
  background-color: #fef08a;
  padding: 20px;
  transition: max-height var(--delete-duration) ease-in-out;
  box-shadow: 4px 4px 4px #cbd5e1;
  margin-bottom: 20px;
}
.task .title {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.task .description {
  margin-bottom: 20px;
}
.task [class^=label-] {
  display: block;
  margin-bottom: 8px;
  font-weight: 600px;
}
.task .start,
.task .end,
.task .responsible {
  display: block;
  margin-bottom: 20px;
}
.task .actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 8px;
}
.task .actions button {
  display: inline-block;
  border-radius: 99999px;
  border: 0;
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
}
.task .actions button.delete {
  background-color: #fee2e2;
  color: #7f1d1d;
}
.task .actions button.complete {
  color: #064e3b;
  background-color: #d1fae5;
}
.task .actions button.edit {
  background-color: #dbeafe;
  color: #1e3a8a;
}
.task .input-group {
  margin-bottom: 20px;
}
.task .input-group label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.task .input-group input {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #475569;
}
.task .action {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 6px;
}
.task .action button {
  display: inline-block;
  border-radius: 9999px;
  padding: 8px;
  border: 0;
}
.task .action button.save {
  background-color: #2563eb;
  color: white;
}
.task .action button.discard {
  color: #334155;
  background-color: #e2e8f0;
}
.task.ghost {
  background-color: yellow;
}
.task.delete {
  overflow: hidden;
  animation-name: delete-task;
  animation-duration: var(--delete-duration);
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.balls,
.balls > span {
  display: block;
  width: 100%;
  height: 100%;
}

.move-cursor {
  cursor: move !important;
}

.ph,
.ph-bold,
.ph-filled {
  font-size: 18px;
}