/*
 * ============================================================
 *  Design System – Warm Monochrome / Editorial Minimal
 *  Stack: Bootstrap 5 + Material Icons + Outfit (Google Fonts)
 * ============================================================
 */

/* ----------------------------------------------------------
   BASE
---------------------------------------------------------- */
html {
    background: #3a3836;
}
body {
    font-family: 'Outfit', sans-serif;
    background: #f5f4f1;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 2rem;
    color: #3a3836;
}
.container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
@media (min-width: 576px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 992px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ----------------------------------------------------------
   NAVBAR
---------------------------------------------------------- */
#main-nav {
    background: #3a3836;
    border-bottom: none;
    box-shadow: none;
}
#main-nav .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #f5f4f1;
    letter-spacing: -0.01em;
}
#main-nav .nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(245,244,241,0.65);
    transition: color 0.15s;
}
#main-nav .nav-link:hover,
#main-nav .nav-link:focus { color: #f5f4f1; }
#main-nav .nav-link.active { color: #f5f4f1; font-weight: 500; }
#main-nav .navbar-collapse {
    background: #3a3836;
}
#main-nav .navbar-toggler {
    border-color: rgba(245,244,241,0.2);
}
#main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245,244,241,0.65%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#main-nav .dropdown-menu {
    background: #3a3836;
    border: 1px solid rgba(245,244,241,0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 0.35rem;
}
#main-nav .dropdown-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: rgba(245,244,241,0.75);
    border-radius: 5px;
    padding: 0.4rem 0.75rem;
    transition: background 0.12s, color 0.12s;
}
#main-nav .dropdown-item:hover { background: rgba(245,244,241,0.08); color: #f5f4f1; }
#main-nav .dropdown-divider { border-color: rgba(245,244,241,0.08); }

/* ----------------------------------------------------------
   PAGE HEADER
---------------------------------------------------------- */
.page-header {
    padding: 1.75rem 0 1.25rem;
    border-bottom: 1px solid #e8e4df;
    margin-bottom: 1.75rem;
}

/* ----------------------------------------------------------
   CARDS
---------------------------------------------------------- */
.card,
.section-card {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: none;
}
.card-header {
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #f0ede8;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}
.card-body {
    padding: 1rem 1.25rem;
}
@media (min-width: 576px) {
    .card-body { padding: 1.1rem 1.25rem; }
}

/* ----------------------------------------------------------
   SECTION CARD
---------------------------------------------------------- */
.section-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0ede8;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.section-card-header .material-icons {
    font-size: 18px;
    color: #a09c96;
}
.section-card-header .fw-bold {
    font-size: 0.875rem;
}
.items-sortable .list-group-item {
    font-size: 0.8rem;
}
.section-card-header .section-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #a09c96;
}
.section-card-body {
    padding: 1rem 1.25rem;
}
@media (min-width: 576px) {
    .section-card-body { padding: 1.1rem 1.25rem; }
}

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn-primary-dark {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #3a3836;
    color: #f5f4f1;
    border: none;
    border-radius: 7px;
    padding: .5rem 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.btn-primary-dark:hover { background: #504d4a; color: #f5f4f1; }
.btn-primary-dark .material-icons { font-size: 16px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1px solid #ddd9d3;
    background: #fff;
    color: #6b6760;
    border-radius: 7px;
    padding: .45rem 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-size: .875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-ghost:hover { background: #f7f6f3; color: #3a3836; border-color: #c8c4bd; }
.btn-ghost .material-icons { font-size: 16px; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    padding: .35rem;
    color: #a09c96;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.btn-icon:hover { background: #ece9e4; color: #3a3836; }
.btn-icon .material-icons { font-size: 18px; }

/* Bootstrap btn overrides */
.btn {
    font-family: 'Outfit', sans-serif;
    border-radius: 7px;
}
.btn-primary {
    background: #3a3836;
    border-color: #3a3836;
}
.btn-primary:hover, .btn-primary:focus {
    background: #504d4a;
    border-color: #504d4a;
}
.btn-success {
    background: #3a3836;
    border-color: #3a3836;
}
.btn-success:hover, .btn-success:focus {
    background: #504d4a;
    border-color: #504d4a;
}
.btn-secondary {
    background: #fff;
    border-color: #ddd9d3;
    color: #6b6760;
}
.btn-secondary:hover {
    background: #f7f6f3;
    border-color: #c8c4bd;
    color: #3a3836;
}
.btn-outline-primary {
    border-color: #ddd9d3;
    color: #3d3b37;
}
.btn-outline-primary:hover {
    background: #3a3836;
    border-color: #3a3836;
    color: #fff;
}
.btn-outline-secondary {
    border-color: #ddd9d3;
    color: #6b6760;
    background: #fff;
}
.btn-outline-secondary:hover {
    background: #f7f6f3;
    border-color: #c8c4bd;
    color: #3a3836;
}
.btn-danger {
    background: #c0392b;
    border-color: #c0392b;
}
.btn-outline-danger {
    color: #c0392b;
    border-color: #e8c4c1;
}
.btn-outline-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* ----------------------------------------------------------
   FORM FIELDS
---------------------------------------------------------- */
.form-control,
.form-select {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    border-color: #ddd9d3;
    border-radius: 7px;
    background: #faf9f7;
    color: #3a3836;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control:focus,
.form-select:focus {
    border-color: #3a3836;
    box-shadow: 0 0 0 2.5px rgba(26,25,22,0.08);
    background: #fff;
}
.form-control::placeholder { color: #b5b0a8; }
.form-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #a09c96;
    margin-bottom: 0.35rem;
}
.form-field label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #a09c96;
    margin-bottom: 0.35rem;
}
.form-field .form-control,
.form-field .form-select {
    border-radius: 7px;
    font-size: .9rem;
}
.form-text { color: #a09c96; font-size: 0.78rem; }

/* ----------------------------------------------------------
   LIST GROUP
---------------------------------------------------------- */
.list-group-item {
    font-family: 'Outfit', sans-serif;
    padding: 0.75rem 1rem;
    border-color: #f0ede8;
    color: #3a3836;
    background: #fff;
    transition: background .12s;
}
.list-group-item-action:hover {
    background: #faf9f7;
    color: #3a3836;
}
@media (min-width: 576px) {
    .list-group-item { padding: 0.85rem 1.25rem; }
}

/* Notizliste: aktiver Eintrag */
#note-list .list-group-item.active {
    background-color: #3a3836;
    border-color: #3a3836;
    color: #f5f4f1;
}
#note-list .list-group-item.active small {
    color: rgba(245,244,241,0.55) !important;
}

/* ----------------------------------------------------------
   INLINE ALERT
---------------------------------------------------------- */
.inline-alert {
    border-radius: 7px;
    font-size: .875rem;
    font-family: 'Outfit', sans-serif;
}
.alert-danger {
    background: #fdf2f1;
    border-color: #e8c4c1;
    color: #892b20;
}
.alert-success {
    background: #f2faf5;
    border-color: #b8dfc7;
    color: #1c6b3a;
}
.alert-info {
    background: #f0f5fd;
    border-color: #c0d4f5;
    color: #1e3d7a;
}
.alert-warning {
    background: #fdf8f0;
    border-color: #e8d8b0;
    color: #7a5a10;
}

/* ----------------------------------------------------------
   BADGES
---------------------------------------------------------- */
.badge {
    font-family: 'Outfit', sans-serif;
    border-radius: 5px;
    padding: 0.3em 0.6em;
    font-weight: 500;
    font-size: 0.72rem;
}
.badge.bg-primary {
    background-color: #ece9e4 !important;
    color: #3d3b37 !important;
}
.badge.bg-secondary {
    background-color: #f0ede8 !important;
    color: #6b6760 !important;
}
.badge.bg-success {
    background-color: #e8f5ee !important;
    color: #1c5e36 !important;
}
.badge.bg-info {
    background-color: #edf2fc !important;
    color: #1e3d7a !important;
}
.badge.bg-warning {
    background-color: #fdf6e8 !important;
    color: #7a5a10 !important;
}
.badge.bg-danger {
    background-color: #fdf2f1 !important;
    color: #892b20 !important;
}

/* ----------------------------------------------------------
   STATUS CHIPS
---------------------------------------------------------- */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-family: 'Outfit', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 5px;
}
.chip-success  { background: #e8f5ee; color: #1c5e36; }
.chip-warning  { background: #fdf6e8; color: #7a5a10; }
.chip-danger   { background: #fdf2f1; color: #892b20; }
.chip-neutral  { background: #f0ede8; color: #6b6760; }
.chip-info     { background: #edf2fc; color: #1e3d7a; }

/* ----------------------------------------------------------
   LIST ROW  —  .item-list, .item-row
---------------------------------------------------------- */
.item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f0ede8;
}
.item-row:last-child { border-bottom: none; }
.item-name { font-size: .8rem; font-weight: 600; color: #3a3836; }
.item-sub  { font-size: .78rem; color: #6b6760; }
.item-actions { display: flex; gap: .3rem; align-items: center; }

/* ----------------------------------------------------------
   MODALS (global)
---------------------------------------------------------- */
.modal-content {
    font-family: 'Outfit', sans-serif;
    border: 1px solid #e8e4df;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    background: #fff;
}
.modal-header {
    border-bottom: 1px solid #f0ede8;
    padding: 1rem 1.25rem 0.85rem;
}
.modal-footer {
    border-top: 1px solid #f0ede8;
    padding: 0.85rem 1.25rem;
}
.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}
.btn-close {
    opacity: 0.4;
}
.btn-close:hover { opacity: 0.8; }

/* Confirm modal */
#confirmModal .modal-content { text-align: left; }
#confirmModal .modal-body {
    font-size: 0.9rem;
    color: #3d3b37;
    padding: 1.25rem;
}

/* ----------------------------------------------------------
   TOAST
---------------------------------------------------------- */
#appToast {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* ----------------------------------------------------------
   LOGIN CARD  (Auth-Seiten)
---------------------------------------------------------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f5f4f1;
}
.login-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e4df;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
}
.login-card .app-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3a3836;
    letter-spacing: -.02em;
}
.login-card .app-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: .82rem;
    color: #a09c96;
}
.login-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}
.login-card .form-control {
    background: #faf9f7;
    border-color: #ddd9d3;
    font-size: 0.9rem;
}
.login-card .form-control:focus {
    border-color: #3a3836;
    box-shadow: 0 0 0 2.5px rgba(26,25,22,0.08);
    background: #fff;
}
.login-card a { color: #6b6760; }
.login-card a:hover { color: #3a3836; }

/* ----------------------------------------------------------
   TODO PAGE (index.php)
---------------------------------------------------------- */
.page-todo {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
}
.page-todo .form-control,
.page-todo .form-select {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    padding: 0.42rem 0.75rem;
}
.page-todo .list-group-item { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.page-todo .btn,
.page-todo .btn-sm { font-size: 0.8125rem; }
.page-todo .page-todo-filters .btn-sm { font-size: 0.875rem; padding: 0.25rem 0.5rem; }
.page-todo .page-todo-filters small { font-size: 0.75rem; color: #a09c96; }
.page-todo .dropdown-menu { font-size: 0.875rem; }
.page-todo .modal-title { font-size: 1rem; font-weight: 600; }
.page-todo .modal .form-label,
.page-todo .modal .form-control,
.page-todo .modal .form-select { font-size: 0.875rem; }

/* ----------------------------------------------------------
   TODO FILTER LAYOUT
---------------------------------------------------------- */
.todo-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.todo-filter-scroll {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.todo-filter-scroll::-webkit-scrollbar { display: none; }
.todo-filter-label-prefix {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #a09c96;
    margin-right: 0.15rem;
}
@media (min-width: 768px) {
    .todo-filter-actions {
        float: right;
        margin-bottom: 0;
        margin-left: 0.5rem;
    }
}

/* ----------------------------------------------------------
   TODO FILTER PILLS
---------------------------------------------------------- */
.todo-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid #ddd9d3;
    background: #fff;
    color: #6b6760;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    white-space: nowrap;
}
.todo-filter-btn:hover {
    background: #f7f6f3;
    border-color: #c8c4bd;
    color: #3a3836;
}
.todo-filter-btn.active {
    background: #3a3836;
    border-color: #3a3836;
    color: #fff;
}
.todo-filter-btn--sm {
    font-size: 0.75rem;
    padding: 0.18rem 0.6rem;
}

/* ----------------------------------------------------------
   TODO ADD FORM
---------------------------------------------------------- */
.todo-add-form {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.todo-add-form .form-control,
.todo-add-form .form-select {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    border-radius: 7px;
    border-color: #ddd9d3;
    background: #faf9f7;
    color: #3a3836;
}
.todo-add-form .form-control:focus,
.todo-add-form .form-select:focus {
    border-color: #3a3836;
    box-shadow: 0 0 0 2.5px rgba(26,25,22,0.08);
    background: #fff;
}
.todo-add-form .form-control::placeholder { color: #b5b0a8; }
.todo-add-btn {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    border-radius: 7px !important;
    padding: 0.42rem 1rem !important;
    background: #3a3836 !important;
    border-color: #3a3836 !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    transition: background 0.15s !important;
}
.todo-add-btn:hover { background: #333 !important; border-color: #333 !important; }

/* ----------------------------------------------------------
   TASK CARDS
---------------------------------------------------------- */
#task-list,
#family-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.2s;
    cursor: grab;
    animation: taskFadeIn 0.2s ease both;
}
@keyframes taskFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.task-card:hover {
    border-color: #ccc8c2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.task-card.dragging { opacity: 0.4; cursor: grabbing; }
.task-card--done {
    opacity: 0.45;
    background: #faf9f7;
}
.task-card--done:hover { border-color: #e8e4df; box-shadow: none; }

.task-card-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    opacity: 0.8;
}

.task-card-inner {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem 0.7rem 1.1rem;
    gap: 0.75rem;
}

/* Circular checkbox */
.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 1.5px solid #c8c4bd;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s, border-color 0.12s;
    position: relative;
}
.task-checkbox:checked { background: #3a3836; border-color: #3a3836; }
.task-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px; height: 8px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -62%) rotate(45deg);
}
.task-checkbox:hover:not(:checked) { border-color: #888; }

/* Task body */
.task-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.task-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3a3836;
    cursor: pointer;
    line-height: 1.4;
    word-break: break-word;
}
.task-title--done {
    text-decoration: line-through;
    color: #b5b0a8;
    cursor: default;
}

.task-meta-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    cursor: default;
    margin-top: 3px;
}

.task-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.08rem 0.45rem;
    border-radius: 4px;
    border: none;
}
.task-badge--cat { background: #f3f1ee; color: #6b6760; }
.task-badge--label { background: #ece9e4; color: #3d3b37; }

.task-edit-meta-icon {
    opacity: 0;
    transition: opacity 0.12s;
    cursor: pointer;
    color: #c8c4bd;
    display: inline-flex;
    align-items: center;
}
.task-edit-meta-icon .material-icons { font-size: 12px; }
.task-meta-edit:hover .task-edit-meta-icon { opacity: 1; }

.task-date {
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    color: #c8c4bd;
    opacity: 0;
    transition: opacity 0.15s;
}
.task-card:hover .task-date { opacity: 1; }
.page-family .task-date { opacity: 1; }

.task-delete {
    color: #c8c4bd;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    flex-shrink: 0;
    display: inline-flex;
    text-decoration: none;
}
.task-delete .material-icons { font-size: 18px; }
.task-card:hover .task-delete { opacity: 1; }
.task-card:hover .task-delete:hover { color: #c0392b; }

/* Empty state */
.todo-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #c8c4bd;
}
.todo-empty .material-icons { font-size: 40px; display: block; margin-bottom: 0.75rem; }
.todo-empty p { font-size: 0.875rem; margin: 0; font-family: 'Outfit', sans-serif; }

/* Color swatches */
.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
    transition: transform 0.1s, border-color 0.1s;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch--none { background: #ece9e4; border-color: #ddd9d3; color: #888; }
.color-swatch--lg { width: 26px; height: 26px; font-size: 10px; }
.color-swatch.selected { border-color: #3a3836 !important; }

/* Due-date badges */
.task-badge--due {
    background: #f0ede8;
    color: #7a7570;
}
.task-badge--due-soon {
    background: #e8f0ff;
    color: #3b65cc;
}
.task-badge--due-today {
    background: #fff3e0;
    color: #c06800;
    font-weight: 700;
}
.task-badge--due-overdue {
    background: #fde8e8;
    color: #c0392b;
    font-weight: 700;
}

/* Karten die heute fällig sind: leichter oranger Rahmen */
.task-card--due-today {
    border-color: #f4b942 !important;
    box-shadow: 0 0 0 1px rgba(244,185,66,0.25);
}
.task-card--due-overdue {
    border-color: #e8a0a0 !important;
    box-shadow: 0 0 0 1px rgba(192,57,43,0.12);
}

/* Staggered card animation */
#task-list .task-card:nth-child(1)  { animation-delay: 0.02s; }
#task-list .task-card:nth-child(2)  { animation-delay: 0.04s; }
#task-list .task-card:nth-child(3)  { animation-delay: 0.06s; }
#task-list .task-card:nth-child(4)  { animation-delay: 0.08s; }
#task-list .task-card:nth-child(5)  { animation-delay: 0.10s; }
#task-list .task-card:nth-child(6)  { animation-delay: 0.12s; }
#task-list .task-card:nth-child(7)  { animation-delay: 0.14s; }
#task-list .task-card:nth-child(8)  { animation-delay: 0.16s; }
#task-list .task-card:nth-child(9)  { animation-delay: 0.18s; }
#task-list .task-card:nth-child(10) { animation-delay: 0.20s; }

/* ----------------------------------------------------------
   PACKING LIST / PACK-RELATED
---------------------------------------------------------- */
.editable-text {
    display: inline-block;
    min-width: 60px;
    padding: 4px 8px;
    margin: -4px -4px;
    cursor: text;
    border-radius: 5px;
    transition: background-color 0.15s;
    font-family: 'Outfit', sans-serif;
}
.editable-text:hover { background-color: #f0ede8; }
h2 .editable-text, h3 .editable-text { min-width: 200px; }

.delete-btn {
    color: #c0392b;
    cursor: pointer;
    opacity: 0.2;
    transition: opacity 0.15s;
    font-size: 18px;
}
.delete-btn:hover { opacity: 1; }
.card-header:hover .delete-btn { opacity: 0.5; }

.item-completed {
    text-decoration: line-through;
    color: #a09c96;
}

.section-done-icon {
    color: #1c6b3a;
    margin-left: 8px;
    font-size: 20px;
    vertical-align: middle;
}

.items-sortable .item-cb { margin-top: 0; }

input.item-note {
    width: 165px;
    font-size: 0.8em;
    padding: 2px 4px;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 575.98px) {
    .items-sortable .item-cb { margin-left: 0.1rem !important; margin-right: 0.6rem !important; }
    .items-sortable .editable-text { padding-left: 4px; padding-right: 4px; }
    input.item-note { width: 80px; }
}

.template-card {
    transition: border-color 0.15s, box-shadow 0.15s;
}
.template-card:hover {
    border-color: #ccc8c2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
