* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f4f5f7;
    color: #1a1a1a;
}

.board {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
}

.column {
    background: #ebecf0;
    border-radius: 8px;
    padding: 10px;
    min-width: 220px;
    flex: 1 0 220px;
    display: flex;
    flex-direction: column;
}

.column h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    color: #444;
}

.column.backlog {
    background: #dfe1e6;
}

.card-list {
    min-height: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card {
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    cursor: grab;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    text-decoration: underline;
}

.card-actions {
    display: flex;
    gap: 6px;
}

.card-actions form {
    margin: 0;
}

.card-actions button {
    cursor: pointer;
    border: none;
    background: #eee;
    color: #1a1a1a;
    border-radius: 3px;
    padding: 2px 8px;
}

.new-task-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.new-task-form input,
.new-task-form select,
.new-task-form textarea,
.new-task-form button {
    font: inherit;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.new-task-form button {
    cursor: pointer;
    background: #1e88e5;
    color: #fff;
    border: none;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 0;
}

.topbar form {
    margin: 0;
}

.topbar button {
    cursor: pointer;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
    font: inherit;
}

.login {
    max-width: 320px;
    margin: 80px auto;
    padding: 0 16px;
}

.login form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login input {
    width: 100%;
    font: inherit;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.login button {
    cursor: pointer;
    background: #1e88e5;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
}

.error {
    color: #c62828;
}

.task-detail,
.archive {
    max-width: 480px;
    margin: 24px auto;
    padding: 0 16px;
}

.task-detail form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-detail input,
.task-detail select,
.task-detail textarea {
    width: 100%;
    font: inherit;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.task-detail button {
    align-self: flex-start;
    margin-top: 8px;
    cursor: pointer;
    background: #1e88e5;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
}

.archive .card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
