* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #16213e;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #e6e6ff;
}

.container {
  width: 100%;
  max-width: 600px;
  background: #0f3460;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

header {
  background: #16213e;
  color: #e6e6ff;
  padding: 30px 25px;
  text-align: center;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #00dbde;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: #00dbde;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-body {
  padding: 25px;
}

.input-container {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.input-container input {
  flex: 1;
  padding: 18px 25px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  background: rgba(26, 26, 46, 0.7);
  color: #e6e6ff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.input-container input:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(92, 107, 192, 0.4);
  background: rgba(31, 31, 56, 0.9);
}

.input-container input::placeholder {
  color: #8c8ca1;
}

.add-btn {
  background: #00dbde;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 30px;
  margin-left: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.add-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.task-list-container {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 15px;
  padding: 25px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(92, 107, 192, 0.2);
}

.task-list-container h2 {
  color: #00dbde;
  margin-bottom: 20px;
  font-size: 1.5rem;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(92, 107, 192, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-list-container h2 i {
  padding-top: 3px;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  margin: 15px 0;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: fadeIn 0.4s ease-out;
  border: 1px solid rgba(92, 107, 192, 0.1);
}

.task-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background: rgba(31, 31, 56, 0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-checkbox {
  width: 24px;
  height: 24px;
  margin-right: 18px;
  cursor: pointer;
  accent-color: #00dbde;
}

.task-text {
  flex: 1;
  font-size: 1.15rem;
  color: #e6e6ff;
  word-break: break-word;
  padding-right: 15px;
}

.task-completed .task-text {
  text-decoration: line-through;
  color: #8c8ca1;
}

.delete-btn {
  background: #ff4b2b;
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 75, 43, 0.5);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 20px 25px;
  background: rgba(26, 26, 46, 0.8);
  color: #e6e6ff;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(92, 107, 192, 0.1);
}

.stats span {
  font-weight: 700;
  color: #00dbde;
  margin-left: 8px;
}

.completed-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(92, 107, 192, 0.2);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8c8ca1;
  opacity: 0.7;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  background: #00dbde;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #e6e6ff;
}

/* Scrollbar styling */
.task-list-container::-webkit-scrollbar {
  width: 5px;
}

.task-list-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

.task-list-container::-webkit-scrollbar-thumb {
  background: #00dbde;
  border-radius: 10px;
}

.task-list-container::-webkit-scrollbar-thumb:hover {
  background: #00c9cc;
}

/* Responsive design */
@media (max-width: 650px) {
  .container {
    border-radius: 15px;
  }

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

  .add-btn {
    margin-left: 0;
    margin-top: 15px;
    padding: 15px;
  }

  .stats {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  header {
    padding: 25px 20px;
  }

  header h1 {
    font-size: 2.2rem;
  }
}
