* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[id^="task-"] input[type="checkbox"] {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #2b7fff;
  appearance: none;
  background: #fff;
  cursor: pointer;
  position: relative;
}
[id^="task-"] input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2b7fff;
  position: absolute;
  top: 1px;
  left: 1px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M4 8l3 3 5-5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.active {
  background-color: #2b7fff;
  font-weight: 500;
  color: white;
}

.active line {
  stroke: white;
}

#add-task-btn:hover line {
  stroke: white;
}

#add-task-btn svg {
  transition: transform 0.5s ease-in-out;
}

#add-task-btn:hover svg {
  transform: rotate(360deg);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Formulario */
.task-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%);
  width: 90%;
  max-width: 500px;
  background: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 20;
  opacity: 0;
  transition: all 0.5s ease-in-out;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-form.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: all;
}

/* Blur effect solo para el main */
.blur-background > *:not(.overlay):not(.task-form) {
  filter: blur(4px);
  transition: filter 0.5s ease-in-out;
}

@media (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  aside {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  aside.visible {
    transform: translateX(0);
  }
}
