/* Professional Library Styling */
.library-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.search-section, .filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-section label, .filter-section label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.search-section input {
    padding: 12px 16px;
    border: 2px solid var(--border-secondary);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-section input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.filter-section select {
    padding: 12px 16px;
    border: 2px solid var(--border-secondary);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.filter-section select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

@media (max-width: 768px) {
    .library-controls {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
}

.search-row input[type="text"] {
    min-width: 280px;
    padding: 12px 16px;
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.search-row input[type="text"]:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-row label {
    font-weight: 500;
    color: var(--text-primary);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    flex-wrap: wrap;
    gap: 15px;
}

#search-status {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-primary);
}

.sort-controls label {
    font-weight: 600;
    color: var(--text-primary);
}

.sort-controls select {
    padding: 8px 15px;
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.sort-controls select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

/* Professional table styling */
.records-table tr:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.pages-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tag-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-secondary);
}

.actions {
    white-space: nowrap;
}

.actions button {
    margin: 0 3px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}