:root {
  --bg: #f9f9f9;
  --text: #111;
  --card: #ffffff;
}

body.dark {
  --bg: #1e1e1e;
  --text: #f5f5f5;
  --card: #2e2e2e;
}

body {
  font-family: sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: 700px;
  margin: auto;
}

form {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

input, button {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
}

.project {
  background: var(--card);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.project h3 {
  margin: 0 0 5px;
  display: flex;
  justify-content: space-between;
}

.task-list {
  margin-top: 10px;
}

.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
}

.progress {
  height: 8px;
  background: #ccc;
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: green;
  width: 0%;
}
