.note-board {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0 1rem;
    color: #f5f5f5;
    width: 100%;
    align-self: stretch;
}

.section-b.section-b-note {
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1rem 1rem;
}

.section-b.section-b-note .note-board {
    min-height: max-content;
}

.note-board-toolbar {
    display: flex;
    justify-content: flex-start;
}

.note-board-add-category,
.note-column-add-card,
.note-board-modal-submit,
.note-board-modal-cancel,
.note-card-action,
.note-column-delete {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.note-board-add-category,
.note-column-add-card,
.note-board-modal-submit,
.note-board-modal-cancel {
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
}

.note-board-add-category:hover,
.note-column-add-card:hover,
.note-board-modal-submit:hover,
.note-board-modal-cancel:hover,
.note-card-action:hover,
.note-column-delete:hover {
    background: rgba(240, 119, 63, 0.18);
    border-color: rgba(240, 119, 63, 0.5);
    transform: none;
}

.note-board-add-category,
.note-column-add-card,
.note-board-modal-submit {
    cursor: pointer;
}

.note-board-feedback {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.note-board-feedback.is-error {
    color: #ffd1c1;
    border-color: rgba(255, 125, 80, 0.4);
    background: rgba(135, 48, 28, 0.25);
}

.note-board-feedback.is-success {
    color: #f5f5f5;
}

.note-board-columns {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.note-column {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.note-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.note-column-title {
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0;
    line-height: 1.2;
    outline: none;
}

.note-column-title::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.note-column-header-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.note-column-badge {
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
    color: #1c140f;
    background: #f7b995;
}

.note-column-delete {
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
}

.note-column-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 4rem;
}

.note-column-empty,
.note-board-empty {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.note-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.note-card-message {
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}

.note-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.note-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.note-priority,
.note-card-deadline {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
}

.note-priority {
    color: #101010;
}

.note-priority--urgent {
    background: #ff8c69;
}

.note-priority--important {
    background: #f5c46b;
}

.note-priority--if-possible {
    background: #8fc6a7;
}

.note-priority--if-free {
    background: #9db3c9;
}

.note-card-deadline {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.note-card-deadline.is-overdue {
    background: rgba(255, 109, 59, 0.24);
    color: #ffd7c8;
}

.note-card-deadline.is-soon {
    background: rgba(245, 196, 107, 0.18);
    color: #ffe6af;
}

.note-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
}

.note-card-action {
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
}

.note-board-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.note-board-modal-backdrop {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.55);
}

.note-board-modal-dialog {
    width: min(100%, 520px);
    padding: 1.1rem;
    border-radius: 16px;
    background: #222222;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.note-board-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.note-board-modal-title {
    margin: 0;
    font-size: 1.15rem;
}

.note-board-modal-close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.note-board-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.note-board-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.note-board-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.note-board-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f5f5f5;
    padding: 0.7rem 0.8rem;
    box-sizing: border-box;
}

.note-board-input:focus,
.note-column-title:focus {
    border-color: rgba(240, 119, 63, 0.6);
    box-shadow: 0 0 0 3px rgba(240, 119, 63, 0.14);
}

.note-board-textarea {
    resize: vertical;
    min-height: 7rem;
}

.note-board-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .note-board {
        padding-bottom: 1rem;
    }

    .note-column {
        flex-basis: 85vw;
        max-width: 85vw;
    }

    .note-card-actions {
        margin-left: 0;
    }

    .note-board-modal-actions {
        flex-direction: column-reverse;
    }

    .note-board-modal-submit,
    .note-board-modal-cancel {
        width: 100%;
    }
}
