:root {
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --accent: #ff6b6b;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;

  background: url('https://i.pinimg.com/1200x/af/ab/4c/afab4c1850fcdae55e04de2e5ca90757.jpg') no-repeat center/cover;

  line-height: 1.6;
}

.todo-container {
  background: var(--glass-bg);
  background-image: url('https://i.pinimg.com/1200x/67/78/b4/6778b4f8bae08b0d9a7e71a005850aed.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  margin: 0 1rem;
  transition: var(--transition);
  min-height: 50vh;
}

.blur-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: -1;
  background: rgba(0, 0, 0, 0.1);
}

.todo-container:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

h1 {
  text-align: center;
  margin: 0 0 1.5rem;
  font-weight: 600;
  font-size: 1.75rem;
  color:rgb(229,98,30);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.5px;
}

.input-section {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#taskInput {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#taskInput::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

#taskInput:focus {
  background: rgb(255, 255, 255);
  color: lightblue;
  outline: none;
  box-shadow:
    0 0 0 3px var(--accent),
    0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

#addTaskBtn {
  background: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#addTaskBtn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#taskList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border-radius: 12px;
  transition: var(--transition);
  animation: fadeIn 0.4s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--glass-border);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.task-text {
  color: blue;
  flex: 1;
  word-break: break-word;
  padding-right: 0.75rem;
  user-select: text;
  font-weight: 500;
}

.delete-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.delete-btn:hover {
  background: #ff4b4b;
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.task-item.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@media (max-width: 480px) {
  .todo-container {
    padding: 1.5rem;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  #addTaskBtn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}
