/* styles.css */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 20px;
}

.progress-tracker {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1, h2 {
  text-align: center;
  color: #333;
}

.add-tracker {
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 16px;
  font-weight: bold;
}

input {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background-color: #45a049;
}

#trackersContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.task {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.task-header {
  display: flex;
  justify-content: space-between; /* Align task-name and progress-text */
  align-items: center; /* Vertically align items */
  margin-bottom: 10px; /* Add spacing below the header */
}

.task-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.progress-text {
  font-size: 14px;
  color: #666;
}

.editable-input {
  width: calc(100% - 20px); /* Adjust width for padding */
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.progress-bar {
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  height: 20px;
  margin-bottom: 10px;
}

.progress {
  background-color: #4caf50;
  height: 100%;
  transition: width 0.3s ease;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.delete-btn, .edit-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px; /* Add spacing between buttons */
}

.edit-btn {
  background-color: #2196f3;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.edit-btn:hover {
  background-color: #1976d2;
}

.increment-decrement {
  display: flex;
  gap: 10px; /* Space between + and - buttons */
}

.increment-decrement button {
  width: 40px; /* Fixed width for both buttons */
  height: 40px; /* Fixed height for better alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  padding: 0; /* Remove default padding */
}