/* Basic Reset */
body, html{
  margin:0; padding:0;
  font-family: Arial;
  background:#f4f4f4;
  transition:0.3s;
}

/* Dark mode */
body.dark{
  background:#121212;
  color:white;
}

.container{
  background:white;
  padding:20px;
  border-radius:10px;
  width:350px;
  box-shadow:0 0 15px rgba(0,0,0,0.3);
  margin:50px auto;
  transition:0.3s;
}

body.dark .container{
  background:#1e1e1e;
}

h1{text-align:center;}

/* Input section */
.input-section{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

input{
  flex:1;
  padding:10px;
  border-radius:5px;
  border:1px solid #ccc;
}

body.dark input{
  border:1px solid #555;
  background:#2e2e2e;
  color:white;
}

button{
  padding:10px;
  border:none;
  border-radius:5px;
  cursor:pointer;
  background:#4CAF50;
  color:white;
  transition:0.2s;
}

button:hover{
  background:#45a049;
}

/* Habit list */
li{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px;
  margin-top:10px;
  background:#eee;
  border-radius:5px;
  transition:0.2s;
}

body.dark li{
  background:#2e2e2e;
}

li span.completed{
  text-decoration: line-through;
  opacity:0.6;
}

/* Delete button */
.delete{
  background:red;
}

/* Progress bar */
.progress-container{
  background:#ddd;
  border-radius:10px;
  height:15px;
  margin-bottom:15px;
  overflow:hidden;
}

#progressBar{
  background:#4CAF50;
  height:100%;
  width:0%;
  transition:0.3s;
}

/* Extra buttons */
.extra-buttons{
  display:flex;
  justify-content:space-between;
  margin-top:15px;
}

@media(max-width:400px){
  .container{width:90%;}
}