:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #2f3437;
  --muted: #6b6f76;
  --border: #e6e6e3;
  --primary: #3b82f6;
}

body.dark {
  --bg: #0f172a;
  --card: #020617;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1e293b;
  --primary: #38bdf8;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  display: flex;
  justify-content: center;
  padding: 40px;
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

.workspace {
  width: 1100px;
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.workspace-header p {
  color: var(--muted);
}

.theme-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

/* Counter */
.task-counter {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* TABLE */
.table {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1.2fr 1.2fr 2.8fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.table > div:not(:first-child) {
  text-align: center;
}

.header {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.input-row {
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

/* TASK ROW */
.task-row {
  border-bottom: 1px solid var(--border);
}

.task-text {
  display: flex;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.task-text.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

/* ACTIONS */
.actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.action-btn {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.action-btn.start {
  background: var(--primary);
  color: white;
  border: none;
}

.action-btn.pause {
  background: #ef4444;
  color: white;
  border: none;
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
