/* Simple black & white styling — no colour, no frameworks. */

* {
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

a {
    color: #000000;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid #000000;
}

.topbar h1 {
    font-size: 20px;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.flash {
    border: 1px solid #000000;
    padding: 8px 12px;
    margin-bottom: 16px;
}

h2 {
    border-bottom: 1px solid #000000;
    padding-bottom: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

th, td {
    border: 1px solid #000000;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #000000;
    color: #ffffff;
}

.btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 6px 14px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #ffffff;
    color: #000000;
}

.btn-outline {
    background: #ffffff;
    color: #000000;
}

.btn-small {
    padding: 3px 8px;
    font-size: 12px;
}

form.inline {
    display: inline;
}

/* Progress bar */
.progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 120px;
    height: 14px;
    border: 1px solid #000000;
    background: #ffffff;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #000000;
}

.progress-label {
    font-size: 12px;
    white-space: nowrap;
}

/* Login page */
.login-box {
    max-width: 320px;
    margin: 80px auto;
    border: 2px solid #000000;
    padding: 24px;
}

.login-box h1 {
    font-size: 18px;
    text-align: center;
}

/* Forms */
.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 13px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #000000;
    font-family: inherit;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.form-actions {
    margin-top: 20px;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

table.calendar {
    table-layout: fixed;
}

table.calendar th {
    text-align: center;
}

table.calendar td {
    height: 80px;
    width: 14.28%;
    vertical-align: top;
    padding: 4px;
}

table.calendar td.empty {
    background: #f5f5f5;
    border-style: dashed;
}

table.calendar td.today {
    border: 2px solid #000000;
}

.cal-day-num {
    font-weight: bold;
    font-size: 12px;
}

.cal-event {
    font-size: 10px;
    border-bottom: 1px dotted #000000;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.upcoming-list li {
    border: 1px solid #000000;
    padding: 6px 10px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.upcoming-list li.overdue {
    background: #000000;
    color: #ffffff;
}

.section {
    margin-bottom: 40px;
}

.checklist-category {
    margin-bottom: 24px;
}

.checklist-category h3 {
    margin-bottom: 6px;
}

ul.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.checklist li {
    border-bottom: 1px solid #cccccc;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

ul.checklist li.done {
    text-decoration: line-through;
    color: #555555;
}

.muted {
    color: #555555;
    font-size: 12px;
}

.empty-state {
    border: 1px dashed #000000;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}
