@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    font-family: "Jost", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    background-color: #96d1f5;
    background-image: url("https://www.transparenttextures.com/patterns/always-grey.png");
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}
.logo {
    background: #344c5b;
    margin-bottom: 2px;
    width: 100%;
    border-radius: 20px 0;
}
.logo,
.empty-image {
  margin: 0;
  padding: 0;
  display: block;
}
.empty-image {
  margin-top: 0;
  width: 100%;
  border-radius: 0 20px 0 20px;
}
.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.todo-app {
    width: min(90vw, 720px);
    max-width: 400px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    color: white;
    border-radius: 60px 0;
    box-shadow: 0 0 100px #344c5b;
    border: 3px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(1.9px);
}
.todo-app h1 {
    font-size: 2rem;
}
.input-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.input-area input {
    flex: 1;
    padding: 10px 17px;
    border: none;
    outline: none;
    border-radius: 20px 0;
    background: #3eadf2;
    color: white;
}
.input-area input::placeholder{
    color: white;
}
.input-area button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 8px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    background: #3eadf2;
    border: 2px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}
.input-area button:hover {
    transform: scale(1.1);    
    background: #344c5b;
}
.todos-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#task-list {
    width: 100%;
}
#task-list li {
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #3eadf2;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 20px 0;
    font-size: 0.8rem;
    color: white;
    position: relative;
    transition: box-shadow 0.2s ease;
}
#task-list li:hover {
    box-shadow: 0 0 10px #344c5b;
}
.task-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
#task-list li .checkbox {
    min-width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
}
#task-list li .checkbox:checked {
    background: #2587c3;
    transform: scale(1.1);
}
#task-list li .checkbox:checked::before {
    content: "\2717";
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}
#task-list li span,
#task-list li .task-text {
    flex: 1;
    margin-left: 10px;
    word-wrap: break-word;
}
#task-list li.completed span,
#task-list li.completed .task-text {
    text-decoration: 2px line-through black;
    color: black;
}
.task-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.task-buttons button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 20px 0;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.task-buttons button:hover {
    transform: scale(1.2);
}
.task-buttons .edit-btn {
    background: #2587c3;
}
.task-buttons .delete-btn {
    background: #094b74;
}
@keyframes fallAndFade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100px);
  }
}
.falling {
  animation: fallAndFade 0.4s ease forwards;
}
.notes {
  display: none;
  margin-top: .5rem;
  width: 100%;
}
.notes.open {
  display: block;
}
.note-input {
  width: 100%;
  min-height: 72px;
  padding: 10px 17px;
  border: none;
  outline: none;
  border-radius: 20px 0;
  background: #3eadf2;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  text-transform: none;
}
.note-input::placeholder {
  color: white;
}
.priority-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  background: #3eadf2;
  border: none;
  padding: 6px 10px;
  border-radius: 20px 0;
  color: white;
  font-size: 0.95rem;
  user-select: none;
  cursor: pointer;
}
.priority-toggle input {
  width: 14px;
  height: 14px;
  appearance: none;
  border: 2px solid #d94a4a;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: 0;
  padding: 0;
}
.priority-toggle input:checked {
  background: #d94a4a;
}
.priority-toggle input:checked::before {
  content: "\2713";
  color: white;
  font-size: 0.8rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}
#task-list li.completed.high .task-text {
  color: #1a1a1a;
  text-decoration-color: #1a1a1a;
}
#task-list li.high {
  background: #d94a4a;
  box-shadow: 0 0 10px rgba(217, 74, 74, 0.6);
}
#task-list li.high:hover {
  box-shadow: 0 0 14px rgba(217, 74, 74, 0.9);
}
.priority-badge {
  font-size: 0.7rem; /* mucho más pequeño */
  display: flex;
  align-items: center;
  gap: 4px;
}
.priority-badge i {
  font-size: 0.8rem; /* icono más pequeño también */
}