/* Modern ToDo App Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

#main-heading {
  text-align: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 200px 120px;
  column-gap: 15px;
  row-gap: 15px;
  margin: 0 auto;
  max-width: 800px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#todo-input {
  font-size: 16px;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

#todo-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

#todo-input::placeholder {
  color: #a0a0a0;
  font-style: italic;
}

#todo-date {
  font-size: 16px;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
  cursor: pointer;
}

#todo-date:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.btn-todo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-todo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-todo:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.todo-container {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 200px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.todo-container:empty::before {
  content: "No todos yet. Add one above! ✨";
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
  font-size: 18px;
  margin-top: 50px;
  opacity: 0.7;
}

.todo-item {
  display: grid;
  grid-template-columns: 1fr 200px 120px;
  column-gap: 15px;
  row-gap: 15px;
  align-items: center;
  padding: 20px 20px 20px 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.todo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.todo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.todo-item span {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.todo-item span:first-child {
  font-weight: 600;
  color: #2c3e50;
}

.todo-item span:nth-child(2) {
  color: #7f8c8d;
  font-size: 14px;
  text-align: center;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.btn-delete {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff5252 0%, #e53e3e 100%);
}

.btn-delete:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }
  
  .todo-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
  
  .todo-item span:nth-child(2) {
    text-align: center;
  }
  
  #main-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  body {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .grid-container {
    padding: 15px;
  }
  
  .todo-container {
    padding: 20px;
  }
  
  #main-heading {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
}