* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f1f1f1;
  color: #222;
  line-height: 1.4;
}

body {
  min-height: 100vh;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
}

.header {
  text-align: center;
  padding: 14px 0;
}

.logo {
    width: clamp(8px, 1vw, 18px);
    height: auto;
    margin-bottom: 6px;
}

.header h1 {
  margin: 0 0 4px;
  font-size: 1.5em;
}

.header p {
  margin: 0;
  font-size: 0.95em;
  color: #555;
}

.screen {
  margin-top: 10px;
}

.box {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95em;
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 1em;
}

textarea {
  resize: vertical;
}

button {
  display: inline-block;
  padding: 10px 12px;
  margin-top: 8px;
  border: none;
  border-radius: 3px;
  background: #0077cc;
  color: white;
  font-size: 1em;
}

button.small-button {
  padding: 8px 10px;
  margin-right: 6px;
  font-size: 0.95em;
}

button.link-button {
  background: transparent;
  color: #0077cc;
  border: none;
  padding: 0;
  font-size: 0.95em;
  cursor: pointer;
}

button.link-button:hover,
button.link-button:focus {
  text-decoration: underline;
}

button:hover,
button:focus {
  background: #005fa3;
}

button[disabled] {
  background: #999;
}

.hidden {
  display: none !important;
}

.message,
.small-text {
  font-size: 0.95em;
  margin-bottom: 8px;
  color: #b40000;
}

.small {
  font-size: 0.9em;
  margin-top: 8px;
}

.small a {
  color: #0077cc;
}

.categories button {
  display: inline-block;
  margin: 2px 2px 0 0;
  padding: 6px 8px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #eee;
  color: #222;
}

.categories button.active {
  background: #0077cc;
  color: #fff;
}

.task-list .task-item {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.task-list .task-item:last-child {
  border-bottom: none;
}

.task-title {
  font-weight: bold;
  margin: 0 0 4px;
}

.task-meta {
  font-size: 0.9em;
  color: #555;
}

.task-actions button {
  margin: 3px 3px 0 0;
  border-radius: 3px;
  background: #444;
}

.task-actions button.view {
  background: #0077cc;
}

.task-actions button.edit {
  background: #009688;
}

.task-actions button.delete {
  background: #cc0000;
}

.task-actions button.complete {
  background: #4caf50;
}

@media (max-width: 480px) {
  .page {
    padding: 8px;
  }

  button,
  input[type="text"],
  input[type="password"],
  textarea,
  select {
    font-size: 1em;
  }
}
