/* ============================================================
   DASHBOARD.CSS — Dashboard specifieke stijlen
   StatieGeld Teller
   ============================================================ */

/* SCOPE TABS (Persoonlijk / Zakelijk) */
.scope-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 0 8px;
}

.scope-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted-light);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.scope-tab.active {
    background: var(--teal-glow);
    border-color: rgba(6,182,212,0.3);
    color: var(--teal);
}

.scope-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* LIJST SELECTOR */
.list-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.list-select {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
}

/* SUMMARY ACTIONS */
.summary-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* HANDMATIGE INPUT */
.counter-manual-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--teal);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.counter-manual-input::-webkit-outer-spin-button,
.counter-manual-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.counter-display:has(input) {
    min-width: 60px;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

/* COUNTER FLASH ANIMATIES */
.counter-display.flash-add {
    animation: flashAdd 0.4s ease both;
}

.counter-display.flash-sub {
    animation: flashSub 0.4s ease both;
}

@keyframes flashAdd {
    0%   { background: var(--teal-glow); }
    50%  { background: var(--green-bg); border-color: var(--green); color: var(--green); }
    100% { background: var(--teal-glow); }
}

@keyframes flashSub {
    0%   { background: var(--teal-glow); }
    50%  { background: var(--red-bg); border-color: var(--red); color: var(--red); }
    100% { background: var(--teal-glow); }
}

/* COUNTER ITEM — teal left border accent */
.counter-item {
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease;
}

.counter-item:hover {
    border-left-color: var(--teal);
}

/* FOOTER NOTE */
.footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    padding: 16px 0 8px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.modal.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.3s var(--spring);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 17px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover { color: var(--text); }

/* ADD PANEL GRID */
.add-panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
    color: var(--muted);
}

/* RESPONSIVE DESKTOP */
@media (min-width: 768px) {
    .modal {
        align-items: center;
    }

    .add-panel-grid {
        grid-template-columns: 3fr 1fr;
    }

    .summary-bar {
        padding: 20px 24px;
    }

    .summary-total {
        font-size: 36px;
    }
}

/* ============================================================
   PAYWALL UX — Disable nieuwe lijst knop
   ============================================================ */

#newListBtn.disabled,
#newListBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}