
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  font-size: 2.2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.input-section {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

#task-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

#task-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#task-input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#add-btn {
  padding: 15px 25px;
  background: rgba(40, 167, 69, 0.8);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#add-btn:hover {
  background: rgba(40, 167, 69, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.section-header {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2em;
  font-weight: 500;
  margin: 25px 0 15px 0;
  text-align: center;
}

#task-list, #completed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: white;
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.task-item.completed {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.4);
}

.task-item.completed .task-text {
  text-decoration: line-through;
  opacity: 0.7;
}

.task-text {
  flex: 1;
  font-size: 16px;
}

.task-buttons {
  display: flex;
  gap: 8px;
}

.task-item button {
  background: rgba(220, 53, 69, 0.8);
  backdrop-filter: blur(5px);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.complete-btn {
  background: rgba(40, 167, 69, 0.8) !important;
}

.complete-btn:hover {
  background: rgba(40, 167, 69, 1) !important;
  transform: scale(1.05);
}

.delete-btn:hover {
  background: rgba(220, 53, 69, 1) !important;
  transform: scale(1.05);
}

.empty-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 10px 0;
}
