/* ===== RESET ===== */
body {
  font-family: 'Roboto', sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* ===== CARD PRINCIPAL ===== */
#content-global {
  background: #fff;
  max-width: 600px;
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== TITULOS ===== */
h1 {
  text-align: center;
  font-size: 2rem;
  color: #212121;
  margin-bottom: 10px;
}

h2 {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #424242;
}

/* ===== FORMULARIO ===== */
form {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

form input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

form input[type="text"]:focus {
  border: 1px solid #1976d2;
  box-shadow: 0 0 0 2px rgba(25,118,210,0.2);
}

form button {
  padding: 12px 18px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: 0.3s;
}

form button:hover {
  background: #1565c0;
  box-shadow: 0 2px 8px rgba(25,118,210,0.4);
}

/* ===== LISTA DE ITEMS ===== */
#cont-to-do-list,
#cont-completed-list {
  margin-top: 10px;
}

.item-to-do {
  background: #fafafa;
  padding: 12px 16px;
  margin: 6px 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e0e0e0;
  transition: background 0.3s, box-shadow 0.3s;
}

.item-to-do:hover {
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.item-to-do p {
  margin: 0;
  flex: 1;
  font-size: 1rem;
  color: #333;
  word-break: break-word;
}

/* ===== CHECKBOX ===== */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1976d2; /* Material Design azul */
}

/* ===== BOTÓN ELIMINAR ===== */
.item-to-do button {
  padding: 8px 14px;
  background: #e53935;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
}

.item-to-do button:hover {
  background: #c62828;
  box-shadow: 0 2px 8px rgba(229,57,53,0.4);
}

/* ===== TAREAS COMPLETADAS ===== */
#cont-completed-list .item-to-do p {
  text-decoration: line-through;
  color: #9e9e9e;
}
#change-styles{
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 20px;
    background: black;
    cursor: pointer;
    color: white;
}