body {
  margin: 0;
  font-family: Arial;

  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 🔥 dark gradient */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 100vh;
}

/* GLASS CARD */
.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.1);
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin: auto;
}

h1 {
  text-align: center;
}

/* INPUT */
.input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

input {
  width: 100%;
  margin: 5px 0;
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.2);
  transition: 0.3s;
}
input:focus {
  outline: none;
  border: 2px solid #4facfe;
  box-shadow: 0 0 8px rgba(79,172,254,0.6);
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #4facfe;
  color: white;
  transition: 0.2s;
  flex-shrink: 0;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(79,172,254,0.5);
}

/* FILTER */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

/* TASK */
li {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.15);
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
}

.completed span {
  text-decoration: line-through;
  opacity: 0.6;
}

/* ACTION BUTTONS */
.actions button {
  margin-left: 5px;
  padding: 5px 8px;
}

.delete {
  background: #000000;
}

.edit {
  background: hsl(0, 0%, 0%);
}

/* MODE BUTTON */
.mode-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* LIGHT MODE */
.light {
  background: #f5f7fa;
  color: black;
}

/* Light mode container */
.light .container {
  background: white;
  color: black;
}

.container {
  width: 90%;
  max-width: 400px;
  margin: 20px auto;

  /* Dark mode */
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.light li {
  background: #e2e8f0;
}

/* MOBILE */

@media (max-width: 600px) {

  .input-box {
    flex-direction: column;
  }

  .filters {
    flex-direction: column;
  }

  button {
    width: 100%;
    margin-top: 8px;
  }

}

  .input-box button {
    width: 100%;   /* Add button full width */
  }

  .filters button {
    width: 100%;
  }

  .input-box {
    flex-direction: column;
  }

  .filters {
    flex-direction: column;
  }

.light input {
  border: 2px solid black;
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #ccc;
  background: #000000;
  backdrop-filter: blur(10px);

  margin-top: auto; 
  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  border-radius: 10px;
}