@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Inter:wght@400;700&display=swap');

:root {
  --brand-dark: #3B4A45;
  --brand-green: #4E5851;
  --accent: #FF7800;
  --accent-light: #FF9840;
  --text-light: #F4F7F6;
  --text-muted: #B4C2BD;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-dark);
  color: var(--text-light);
  font-family: 'Noto Sans TC', sans-serif;
  padding: 48px 32px;
}

#top-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 960px;
  margin: 0 auto 40px;
}

#clock {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 40px;
}

#weather {
  font-size: 20px;
  color: var(--text-muted);
}

main {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  main {
    grid-template-columns: 1fr;
  }
}

section {
  background: var(--brand-green);
  border-radius: 16px;
  padding: 24px;
}

h2 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 16px;
}

#todo-form,
#shortcut-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

input[type="text"],
input[type="url"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #5B6A64;
  background: var(--brand-dark);
  color: var(--text-light);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
}

input::placeholder {
  color: var(--text-muted);
}

input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

button {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

#shortcut-form {
  flex-wrap: wrap;
}

#shortcut-form input {
  min-width: 100px;
}

button:hover {
  background: var(--accent-light);
}

#todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#todo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #5B6A64;
}

#todo-list li:last-child {
  border-bottom: none;
}

#todo-list li.done span {
  text-decoration: line-through;
  color: var(--text-muted);
}

#todo-list li span {
  flex: 1;
}

.icon-btn {
  background: transparent;
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 14px;
}

.icon-btn:hover {
  background: transparent;
  color: var(--accent);
}

#shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.shortcut-card {
  position: relative;
  display: block;
  background: var(--brand-dark);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 14px;
}

.shortcut-card:hover {
  outline: 1px solid var(--accent);
}

.shortcut-card .remove-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}

.shortcut-card .remove-btn:hover {
  color: var(--accent);
}
