/* ══════════════════════════════════════════════════════════════
   Notespark — template picker
   Isolated file. Load after the other nota-*.css files.
   ══════════════════════════════════════════════════════════════ */
.tpl-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 340px;
    overflow-y: auto;
    margin-bottom: 4px;
}

.tpl-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 13px;
    background: var(--n-surface);
    border: 1px solid var(--n-border-light);
    border-radius: 11px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--n-text);
    text-align: left;
    transition: background var(--n-transition), border-color var(--n-transition);
}

    .tpl-item:hover {
        background: var(--n-surface-hover);
        border-color: var(--n-card-border-hover);
    }

.tpl-item-ic {
    font-size: 16px;
    flex-shrink: 0;
}

.tpl-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpl-item-del {
    opacity: 0;
    font-size: 12px;
    color: var(--n-text-4);
    padding: 2px 5px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: opacity 0.15s, color 0.15s;
}

.tpl-item:hover .tpl-item-del {
    opacity: 1;
}

.tpl-item-del:hover {
    color: var(--n-danger);
}

/* ── Lucide icons in the editor toolbar ──
   The buttons were sized for emoji glyphs; centre the SVGs properly and
   give them the muted-until-hover treatment used elsewhere. */
.nota.theme-light .editor-toolbar .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    color: var(--n-text-3);
}

    .nota.theme-light .editor-toolbar .icon-btn:hover {
        background: var(--n-surface-hover);
        color: var(--n-text);
    }

    .nota.theme-light .editor-toolbar .icon-btn.danger:hover {
        background: var(--n-danger-bg);
        color: var(--n-danger);
    }
