:root {
  --primary: #2c3e50;
  --accent: #7f00ff;
  --bg: #f4f7f6;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  padding-bottom: 100px;
}
header {
  background: white;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hidden {
  display: none !important;
}
.container {
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}
.category-section {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.sin-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.sin-item:last-child {
  border-bottom: none;
}
input[type="checkbox"] {
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: var(--accent);
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  display: grid;
  place-content: center;
  transform: scale(1);
  cursor: pointer;
}

/* This creates the "Check" mark when selected */
input[type="checkbox"]::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--accent);
  background-color: CanvasText;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.footer-controls {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  display: flex;
  padding: 15px;
  gap: 10px;
  border-top: 1px solid #ddd;
  box-sizing: border-box;
}
button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit {
  background: var(--accent);
  color: white;
}
.btn-reset {
  background: #eee;
  color: #333;
}
.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

@media print {
  header,
  .footer-controls,
  .summary-actions,
  #checklist-view {
    display: none !important;
  }
  #summary-view {
    display: block !important;
  }
}
