html {
  height: auto;
  width: auto;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;  
  height: auto;
  width: auto;
  font-family: "Rubik", sans-serif;
  background-color: #F5F9FF;
  padding: 2rem;
}

#container { 
    height: 100%; 
  width: 100%;
  width: 43rem;
  margin: 0 auto;
}

#task-board {
  background-color: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

#board-title {
  margin-top: 0;
  color: #11175E;
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: start;
}

#input-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.task-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid #eeeeee;
  border-radius: 0.5rem;
  color: #11175e;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  background-color: white;
}

.task-input::placeholder {
  color: #b1bacb;
}

.add-button {
  background-color: #2D70FD;
  color: white;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
}

.add-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid #f1f5f9;
  height: 8rem;
}

.task-item:last-child {
  border-bottom: none;
}

.task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-title {
  color: #11175e;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.task-title.completed {
  color: #b1bacb;
  text-decoration: line-through;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.task-label {
  background-color: #ffffff;
  color: #b1bacb;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  border-style: solid;
  border-width: 1px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.task-date {
  color: #b1bacb;
  font-size: 0.875rem;
  white-space: nowrap;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.complete-btn {
  background-color: #2d70fd;
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.complete-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}


.task-completed-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #00d8a7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-completed-icon svg {
  width: 16px;
  height: 16px;
}

footer {
  margin-top: 1rem;
  text-align: right;
  border-top: 1px solid #ffffff;
}

.completed-count {
  color: #b1bacb;
  font-size: 0.875rem;
}


@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  #task-board {
    padding: 1.5rem;
  }

  #container {
    max-width: 100%;
  }

  #board-title {
    font-size: 1.5rem;
    text-align: center;
  }

  #input-section {
    flex-direction: column;
    gap: 0.75rem;
  }

  .add-button {
    max-width: 18rem ;
    width: 100%;
  }

  .task-item {
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    gap: 1rem;
    padding: 1rem 0;
    height: 10rem;
  }


  .task-actions {
    align-self: flex-end;
    justify-content: flex-end;
  }

  .task-meta {
    gap: 0.5rem;
  }

  .complete-btn{
   align-items: center;
  }
 
 }  
 