body {
    background-color: #f4f5f7;
}

.auth-card {
    max-width: 420px;
    margin: 60px auto;
}

.navbar-brand {
    font-weight: 600;
}

.board-card {
    transition: box-shadow .15s;
}
.board-card:hover {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15) !important;
}

/* ---- 看板（桌面：清單橫向） ---- */
.board-scroll {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: 70vh;
}
.board-list {
    background: #ebecf0;
    border-radius: 8px;
    width: 280px;
    min-width: 280px;
    padding: 8px;
    display: flex;
    flex-direction: column;
}
.board-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    padding: 4px 6px;
}
.list-title[data-editable] { cursor: pointer; }
.card-list {
    min-height: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kanban-card {
    background: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    box-shadow: 0 1px 0 rgba(9, 30, 66, .25);
    cursor: pointer;
}
.kanban-card:hover { background: #f7f8f9; }
.card-title-text { font-size: .9rem; }
.card-label-dot {
    display: inline-block;
    width: 32px;
    height: 8px;
    border-radius: 4px;
    margin-right: 4px;
}
.card-badges { margin-top: 4px; }
.card-badges .badge { font-weight: 400; }
.add-card-box { margin-top: 6px; }
.add-list-box { background: rgba(0,0,0,.05); }
.sortable-ghost { opacity: .4; }

/* ---- 卡片說明（Markdown） ---- */
#cardDescription {
    min-height: 400px;
}
.card-desc-view {
    min-height: 120px;
    padding: 10px 12px;
    background: #f7f8f9;
    border: 1px solid #e2e4e8;
    border-radius: 6px;
    overflow-wrap: anywhere;
}
.card-desc-view img { max-width: 100%; height: auto; }
.card-desc-view pre {
    background: #eef0f2;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
}
.card-desc-view table { border-collapse: collapse; }
.card-desc-view table td, .card-desc-view table th { border: 1px solid #ccc; padding: 4px 8px; }
.card-desc-view :last-child { margin-bottom: 0; }

/* ---- 手機版 ---- */
@media (max-width: 768px) {
    .board-list {
        width: 85vw;
        min-width: 85vw;
    }
    .modal-lg { max-width: 100%; }
}
