@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #373739, #5f4796);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1f2933;
  padding: 32px 16px;
}

/* Title */
h1 {
  color: white;
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Top Panel */
#Inputscont {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

/* Input Rows */
#Inputscont > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 9px;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-weight: 500;
}

input::placeholder {
  color: #9ca3af;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 9px;
  background: #4f46e5;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s;
}

button:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

#error {
  color: #ffdada;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
}

/* Labels */
#label-bar {
  flex-direction: row;
}

#labels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.label-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: white;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: 0.2s;
}

.label-pill:hover {
  background: rgba(255, 255, 255, 0.45);
}

.label-pill.active {
  background: #22c55e;
  color: #052e1a;
}

/* Task Area */
#container {
  width: 80%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Columns */
#container > div {
  background: white;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* Section Titles */
h2 {
  margin-bottom: 10px;
  color: #4f46e5;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Task List */
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

li {
  background: #f9fafb;
  padding: 9px 11px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.25s ease;
}

/* Main text */
li span:first-child {
  flex: 1;
  font-weight: 600;
  font-size: 13.5px;
}

/* Label badge */
.todo-label {
  font-size: 10.5px;
  padding: 3px 7px;
  background: #e0e7ff;
  border-radius: 6px;
  color: #3730a3;
  font-weight: 600;
}

/* Buttons inside tasks */
li button {
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 7px;
}
li:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* Completed */
#compllist li {
  background: #cdf7e3;
}

#compllist span:first-child {
  text-decoration: line-through;
  color: #6b7280;
}

/* Empty Text */
ul p {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  font-size: 12px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 640px) {
  h1 {
    font-size: 26px;
  }

  #container {
    grid-template-columns: 1fr;
  }
}
