:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }

body { margin: 0; background: #fafafa; }

.container { max-width: 1200px; margin: 24px auto; padding: 16px; }

h1 { margin: 0 0 6px; }

.muted { margin: 0 0 18px; opacity: .7; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.label { font-size: 13px; opacity: .8; margin-bottom: 6px; }

/* Top header inputs */
.grid input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: white;
    box-sizing: border-box;
    font-size: 15px;
}

button {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #333;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 18px;
    background: white;
}

button:active { transform: translateY(1px); }

/* TABLE */
.checklist-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.checklist-table th,
.checklist-table td {
    border: 2px solid #222;
    vertical-align: middle;
}

.th-item  { width: 56%; font-size: 1.05em; font-weight: 800; text-align: left; padding: 10px 12px; }
.th-check { width: 7%;  font-size: 1.05em; font-weight: 800; text-align: center; }
.th-notes { width: 30%; font-size: 1.05em; font-weight: 800; text-align: left; padding: 10px 12px; }

.td-item  { padding: 12px 12px; font-size: 15px; font-weight: bold; }
.td-check { text-align: center; }
.td-notes { padding: 0; } /* IMPORTANT: makes notes reach borders */

.section-header {
  font-weight: bold;
  font-size: 1.1em;
  background: #f3f3f3; /* subtle gray so category dividers are easy to spot */
  padding: 12px 14px;
  text-align: left;
  box-sizing: border-box;
}

/* GIANT CHECKBOXES */
.td-check input[type="checkbox"] {
    transform: scale(2.1);
    cursor: pointer;
    accent-color: #111; /* modern browsers */
}

/* NOTES: flush to borders + full height */
.checklist-notes-input {
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    border: none;
    border-radius: 0;

    padding: 10px;
    font-size: 14px;
    font-family: inherit;

    outline: none;
    resize: vertical;
    min-height: 52px;
}

.checklist-notes-input:focus {
    background: #f7fbff;
}

/* Mobile tweaks */
@media (max-width: 900px) {
    .container { max-width: 100%; }
    .grid { grid-template-columns: 1fr; }
    .th-item { width: 52%; }
    .th-notes { width: 33%; }
    .td-check input[type="checkbox"] { transform: scale(1.8); }
}

/* Lower font size for mobile devices */
@media (max-width: 600px) {
    body, .container {
        font-size: 0.85rem;
    }
    h1 {
        font-size: 1.1rem;
    }
    .label {
        font-size: 0.8rem;
    }
    .grid input {
        font-size: 0.85rem;
        padding: 8px;
    }
    button {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
    .th-item, .th-check, .th-notes {
        font-size: 0.8em;
        padding: 6px 6px;
    }
    .td-item {
        font-size: 0.85rem;
        padding: 8px 6px;
    }
    .checklist-notes-input {
        font-size: 0.8rem;
        padding: 6px;
        min-height: 32px;
    }
    .section-header {
        font-size: 0.85rem;
        padding: 8px 6px;
    }
    .td-check input[type="checkbox"] {
        transform: scale(1.2);
    }
}
