* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #343a40;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #495057;
  margin-bottom: 10px;
}

.planner-container {
  display: flex;
  gap: 20px;
}

.sidebar {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-content {
  flex: 3;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.add-task h2,
.stats h2 {
  margin-bottom: 15px;
  color: #495057;
  font-size: 1.2rem;
}

#task-title,
#task-desc,
#task-date,
#task-priority {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#task-desc {
  min-height: 80px;
  resize: vertical;
}

.task-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.task-meta div {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #6c757d;
}

#add-task {
  width: 100%;
  padding: 12px;
  background-color: #4dabf7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

#add-task:hover {
  background-color: #339af0;
}

.stats {
  margin-top: 30px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.task-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 15px;
  background-color: #e9ecef;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background-color: #4dabf7;
  color: white;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.task-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #adb5bd;
  transition: all 0.3s;
}

.task-card.high {
  border-left-color: #fa5252;
}

.task-card.medium {
  border-left-color: #fcc419;
}

.task-card.low {
  border-left-color: #51cf66;
}

.task-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.task-title {
  font-weight: 600;
  color: #212529;
}

.task-priority {
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 10px;
  color: white;
}

.task-priority.high {
  background-color: #fa5252;
}

.task-priority.medium {
  background-color: #fcc419;
}

.task-priority.low {
  background-color: #51cf66;
}

.task-desc {
  color: #495057;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6c757d;
}

.task-actions {
  display: flex;
  gap: 10px;
}

.task-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.complete-btn {
  background-color: #51cf66;
  color: white;
}

.delete-btn {
  background-color: #fa5252;
  color: white;
}

.task-card.completed {
  opacity: 0.7;
  background-color: #e9ecef;
}

.task-card.completed .task-title {
  text-decoration: line-through;
}

@media (max-width: 768px) {
  .planner-container {
    flex-direction: column;
  }

  .task-meta {
    flex-direction: column;
    gap: 0;
  }
}
