/* Extension table filter styling */
.extension-filter {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--color-background-secondary, #f8f9fa);
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: 0.375rem;
}

.extension-filter .filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-foreground-primary, #212529);
    background-color: var(--color-background-primary, #fff);
    border: 1px solid var(--color-border, #ced4da);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.extension-filter .filter-input:focus {
    color: var(--color-foreground-primary, #212529);
    background-color: var(--color-background-primary, #fff);
    border-color: var(--color-brand-primary, #76b900);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(118, 185, 0, 0.25);
}

.extension-filter .filter-input::placeholder {
    color: var(--color-foreground-muted, #6c757d);
    opacity: 1;
}

.extension-filter .filter-count {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-foreground-muted, #6c757d);
}

/* Narrow columns for download and documentation indicators */
/* Target the last two columns (download and docs) to be narrow */
table.docutils td:last-child,
table.docutils th:last-child,
table.docutils td:nth-last-child(2),
table.docutils th:nth-last-child(2) {
    width: 1%;
    min-width: 3rem;
    white-space: nowrap;
    text-align: right;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Ensure download buttons and doc indicators are properly aligned */
table.docutils td:last-child .download-btn,
table.docutils td:last-child a,
table.docutils td:nth-last-child(2) .download-btn,
table.docutils td:nth-last-child(2) a {
    display: inline-block;
    vertical-align: middle;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .extension-filter {
        background-color: var(--color-background-secondary, #1a1a1a);
        border-color: var(--color-border, #404040);
    }
    
    .extension-filter .filter-input {
        color: var(--color-foreground-primary, #e0e0e0);
        background-color: var(--color-background-primary, #2a2a2a);
        border-color: var(--color-border, #404040);
    }
    
    .extension-filter .filter-input:focus {
        border-color: var(--color-brand-primary, #76b900);
    }
}

