/* DataTables inside De'Chord library panels */
.library-table-wrap .dt-layout-row {
    margin-bottom: 12px;
    align-items: center;
}

/* Prominent search CTA (global filter) */
.library-table-wrap .dt-search {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 14px 10px 16px;
    margin-left: auto;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.45);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.15);
}

.library-table-wrap .dt-search label {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #4c51bf !important;
    letter-spacing: 0.01em;
    margin: 0 !important;
    white-space: nowrap;
}

.library-table-wrap .dt-search label::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #667eea;
    font-size: 0.9rem;
}

.library-table-wrap .dt-search input,
.library-table-wrap .dt-length select {
    border: 2px solid rgba(102, 126, 234, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    min-width: 220px;
    max-width: min(420px, 100%);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.library-table-wrap .dt-search input::placeholder {
    color: #94a3b8;
}

.library-table-wrap .dt-search input:focus,
.library-table-wrap .dt-length select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.28);
}

@media (max-width: 700px) {
    .library-table-wrap .dt-search {
        margin-left: 0;
        width: 100%;
        flex: 1 1 100%;
        justify-content: stretch;
    }
    .library-table-wrap .dt-search input {
        min-width: 0;
        flex: 1 1 auto;
        max-width: none;
    }
}

.library-table-wrap .dt-info {
    font-size: 0.85rem;
    color: #666;
}

.library-table-wrap .dt-paging .dt-paging-button {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    margin: 0 2px;
}

.library-table-wrap .dt-paging .dt-paging-button.current {
    background: #667eea !important;
    color: #fff !important;
    border-color: #667eea !important;
}

.library-table-wrap table.dataTable thead th {
    background: #f8f9ff;
    font-weight: 600;
    color: #444;
}

.library-table-wrap table.dataTable tbody tr:hover td {
    background: #fafbff;
}
