/* Add templates styling after sidebar-tags section */
.sidebar-templates {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.templates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.templates-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.templates-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.template-item:hover {
    background: var(--bg-tertiary);
}

.template-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.template-content i {
    flex-shrink: 0;
}

.template-content span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.template-item .btn-icon {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.template-item:hover .btn-icon {
    opacity: 1;
}
