/* General Styles */
body {
  margin: 0;
  min-width: 250px;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

/* Container */
.container {
  max-width: 900px;
  margin: 20px auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Header Section */
.header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 30px 40px;
  color: white;
  text-align: center;
}

.header h2 {
  margin: 0 0 20px 0;
  font-size: 32px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Form Input Group */
.input-group {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Form Inputs */
input[type="text"], 
select {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  transition: border-color 0.3s;
}

input[type="text"]:focus, 
select:focus {
  outline: none;
  border-color: #f5576c;
}

/* Add Button */
.addBtn {
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  width: 100%;
}

.addBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Messages */
.message {
  padding: 15px;
  margin: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  animation: slideIn 0.3s ease-out;
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Task List */
ul {
  margin: 0;
  padding: 20px;
  list-style: none;
}

.task-item {
  cursor: pointer;
  position: relative;
  padding: 20px;
  background: #f9f9f9;
  margin-bottom: 10px;
  border-radius: 10px;
  transition: all 0.3s;
  border-left: 5px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.task-item.checked {
  background: #d4edda;
  border-left-color: #28a745;
  opacity: 0.7;
}

.task-item.checked .task-content {
  text-decoration: line-through;
  color: #6c757d;
}

/* Empty State */
.empty-state {
  text-align: center;
  border: none;
  background: transparent;
  padding: 40px;
}

.empty-state p {
  color: #666;
  font-size: 18px;
  margin: 0;
}

/* Task Content */
.task-content {
  flex: 1;
}

.task-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.task-details {
  font-size: 14px;
  color: #666;
}

.task-details span {
  display: inline-block;
  margin-right: 15px;
  background: #e9ecef;
  padding: 4px 10px;
  border-radius: 5px;
  margin-top: 5px;
}

/* Task Actions */
.task-actions {
  display: flex;
  gap: 10px;
}

.check-btn, 
.close {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  font-weight: bold;
}

.check-btn {
  background: #28a745;
  color: white;
}

.check-btn:hover {
  background: #218838;
  transform: scale(1.05);
}

.close {
  background: #dc3545;
  color: white;
}

.close:hover {
  background: #c82333;
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  
  input[type="text"], 
  select {
    width: 100%;
  }
  
  .task-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .task-actions {
    width: 100%;
    margin-top: 10px;
  }
  
  .check-btn, 
  .close {
    flex: 1;
  }
}