:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --soft: #ebe6de;
  --text: #2f2a26;
  --muted: #7b746c;
  --accent: #8b9d83;
  --accent-dark: #74856c;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbf9f5 0%, var(--bg) 100%);
  font-family: Arial, sans-serif;
  color: var(--text);
}

.container {
  max-width: 560px;
  margin: 56px auto;
  padding: 28px;
}

h1 {
  font-size: 2.2rem;
  margin: 0 0 10px;
  line-height: 1.1;
}

.message {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.add-section {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.add-section input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--soft);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.add-section input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 157, 131, 0.12);
}

.add-section button,
.habit button {
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.add-section button:hover,
.habit button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

#emptyMessage {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--soft);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 18px;
}

#habitList {
  display: grid;
  gap: 16px;
}

.habit {
  background: var(--card);
  border: 1px solid var(--soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.habit h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.habit button {
  margin-top: 14px;
}

button.done {
  background: #d8dfd4;
  color: var(--text);
}

.status.done-text {
  color: var(--text);
  font-weight: 600;
}
