:root {
  --bg: #E1E9C9;
  --primary-color: #577b77;
  --secondary-color: #5A827E;
  --box-bg: #CADCAE;
}

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

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
}

.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-around;
  padding: 1rem;
  background-color: var(--bg);
}

.extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.extra h2 {
  color: var(--secondary-color);
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.links a{
  text-decoration: none;
}
.links i {
  font-size: 2.5rem;
}

.github { color: black; }
.linkedin { color: #0077b5; }
.discord { color: #5865f2; }
.youtube { color: #ff0000; }
.email { color: red; }
.whatsapp { color: #25d366; }
.telephone { color: rgb(44, 44, 225); }
.sms { color: rgb(80, 140, 245); }

.donate {
  font-size: 2rem;
}
.donate a {
  color: var(--primary-color);
  text-decoration: wavy;
  font-weight: bold;
  font-family: cursive;
  transform: scale(1.3);
}

.to-do-box {
  background-color: var(--box-bg);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  width: 500px;
  max-width: 100%;
}

.head-install {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.head-install h2 {
  font-size: 2rem;
}

#installBtn {
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
}

.input-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input-box input[type="text"] {
  flex: 1 1 80px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #888;
}


.input-box input[type="datetime-local"] {
  flex: 1 1 40px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #888;
}

.input-box label {
  font-weight: bold;
}
.input-box button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-search label {
  font-weight: bold;
}

.filter-search select,
.filter-search input[type="search"] {
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #888;
  flex: 1 1 120px;
}

#task-list {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  
  list-style: none;
  max-height: 15rem;
  margin-bottom: 1rem;
  padding: 0;
}

#task-list li {
  background: #fff;
  margin-bottom: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-left: 6px solid var(--primary-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

#task-list li:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#task-list li strong {
  font-size: 1.1rem;
  color: var(--primary-color);
}

#task-list li em {
  font-style: normal;
  font-weight: bold;
  color: var(--secondary-color);
}

#task-list li button {
  margin-top: 0.4rem;
  margin-right: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

#task-list li button:hover {
  transform: scale(1.05);
}


#task-list li button:nth-child(1) { background: #4caf50; color: #fff; }  
#task-list li button:nth-child(2) { background: #ff9800; color: #fff; }  
#task-list li button:nth-child(3) { background: #2196f3; color: #fff; }  
#task-list li button:nth-child(4) { background: #f44336; color: #fff; }  

footer {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}


@media (max-width: 900px) {
  .to-do-box {
    width: 90%;
  }

  .head-install h2 {
    font-size: 1.8rem;
  }

  .extra h2 {
    font-size: 2rem;
  }

  .links i {
    font-size: 2rem;
  }
}


@media (max-width: 600px) {
  .container {
    flex-direction: column-reverse;
    justify-content: center;
    padding: 0.5rem;
  }

  .to-do-box {
    width: 100%;
    padding: 0.8rem;
  }

  .head-install {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .input-box input,
  .input-box button,
  .filter-search select,
  .filter-search input {
    width: 100%;
  }

  .extra h2 {
    font-size: 1.8rem;
  }

  .links i {
    font-size: 2rem;
  }
}

#installBtn,
.input-box button {
  transition: all 0.3s ease;
}

#installBtn:hover,
.input-box button:hover {
  background-color: #3f5d5a;
  transform: scale(1.05);
}


.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, color 0.3s;
}

.links a:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.3));
}


input[type="text"],
input[type="datetime-local"],
select,
input[type="search"] {
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="datetime-local"]:focus,
select:focus,
input[type="search"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(87,123,119,0.5);
  outline: none;
}

@media (max-width: 600px) {
  #installBtn:hover,
  .input-box button:hover,
  .links a:hover {
    transform: scale(1.05);
  }

  
}

