/* Modern and Luxurious Styling */
:root {
  --primary-color: #ff6b35;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(ellipse 40% 35% at 20% 15%, rgba(180, 160, 210, 0.35) 0%, rgba(255,255,255,0) 100%),
              linear-gradient(135deg, #fbe4ea 0%, #fbe4ea 100%);
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body::before, body::after {
  content: none;
}

.container {
  position: relative;
  z-index: 1;
}

.card {
  backdrop-filter: blur(10px);
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 32px rgba(255, 107, 53, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(255, 107, 53, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  background-color: #fff;
}

.todo-header {
  padding: 24px 32px 16px 32px;
  border-radius: 20px 20px 0 0;
  background: none;
}

.todo-header h1, .todo-header h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 4px rgba(155, 152, 152, 0.08);
}

.input-group {
  display: flex;
  gap: 12px;
  padding: 24px 32px 0 32px;
}

#task-input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #f5f6fa;
  font-size: 1rem;
  color: #2c3e50;
  outline: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

#task-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

#add-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
  height: 44px;
}

#add-btn:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

#task-list {
  list-style: none;
  padding: 0 32px;
  margin: 24px 0 0 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  padding: 0;
  margin-bottom: 18px;
  border: none;
  box-shadow: none;
}

.custom-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
}

.custom-checkbox span {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  transition: border 0.2s, background 0.2s;
}

.custom-checkbox input[type="checkbox"]:checked + span {
  background: #ff5e4d;
  border-color: #ff5e4d;
}

.custom-checkbox input[type="checkbox"]:checked + span::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 6px;
  left: 6px;
}

.task-item span.task-text {
  flex: 1;
  font-size: 1rem;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.completed {
  color: #b0b0b0 !important;
  text-decoration: line-through;
}

.delete-btn {
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
  line-height: 1;
}

.delete-btn:hover {
  color: #ff5e4d;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5722;
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }
  .card {
    max-width: 98vw;
    margin: 16px auto;
    border-radius: 16px;
    padding: 0 0 16px 0;
  }
  .todo-header {
    padding: 18px 12px 10px 12px;
  }
  .input-group {
    padding: 16px 12px 0 12px;
    gap: 8px;
  }
  #task-list {
    padding: 0 12px;
    margin: 16px 0 0 0;
  }
}

.badge {
  padding: 8px 12px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animation classes */
.animate__animated {
  animation-duration: 0.5s;
}
