* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #1f2328;
    background: #f6f8fa;
    font-size: 14px;
    line-height: 1.5;
}

a { color: #0969da; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #d0d7de;
    padding: 12px 32px;
}

.topbar h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2328;
}

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

.card {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 24px 28px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.toolbar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d0d7de;
    background: #f6f8fa;
    color: #1f2328;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
    text-decoration: none;
}

.btn:hover { background: #eef1f4; text-decoration: none; }

.btn-primary {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #ffffff;
}

.btn-primary:hover { background: #1a5fd0; border-color: #1a5fd0; }

.btn-danger {
    background: #ffffff;
    border-color: #cf222e;
    color: #cf222e;
}

.btn-danger:hover { background: #cf222e; color: #ffffff; }

table.tasks {
    width: 100%;
    border-collapse: collapse;
}

table.tasks th,
table.tasks td {
    border-bottom: 1px solid #d0d7de;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

table.tasks th {
    background: #f6f8fa;
    font-weight: 600;
    font-size: 13px;
    color: #4d535a;
}

table.tasks tr:last-child td { border-bottom: none; }

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.badge-high     { background: #ffebe9; color: #82071e; border-color: #ffcecb; }
.badge-medium   { background: #fff8c5; color: #633c01; border-color: #f5d76e; }
.badge-low      { background: #dafbe1; color: #116329; border-color: #aceebb; }

.badge-pending  { background: #f6f8fa; color: #4d535a; border-color: #d0d7de; }
.badge-progress { background: #ddf4ff; color: #0a3069; border-color: #b6e3ff; }
.badge-done     { background: #dafbe1; color: #116329; border-color: #aceebb; }

.alert {
    border: 1px solid;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-success {
    background: #dafbe1;
    border-color: #aceebb;
    color: #116329;
}

.alert-error {
    background: #ffebe9;
    border-color: #ffcecb;
    color: #82071e;
}

.form-row { margin-bottom: 16px; }

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-row .hint { color: #656d76; font-size: 12px; margin-top: 4px; }

.form-row input[type=text],
.form-row input[type=date],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #ffffff;
    color: #1f2328;
}

.form-row textarea { min-height: 90px; resize: vertical; }

.form-row .error { color: #cf222e; font-size: 12px; margin-top: 4px; }

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.empty {
    text-align: center;
    padding: 32px 16px;
    color: #656d76;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 35, 40, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 22px 26px;
    width: 100%;
    max-width: 420px;
}

.modal h3 { margin: 0 0 10px 0; font-size: 16px; }
.modal p  { margin: 0 0 18px 0; color: #4d535a; font-size: 13px; }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
