@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f3f4f6;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.6;
}

.libros-registrados {
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo {
    display: block;
    max-width: 120px;
    margin: 0 auto 20px auto; /* Centra y agrega espacio inferior */
}

h2 {
    font-size: 1.8rem;
    color: #111827;
    margin-bottom: 25px;
    text-align: center;
}

.botones-container {
    text-align: center;
    margin-bottom: 20px;
}

.volver-btn {
    background-color: #6b7280;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.volver-btn:hover {
    background-color: #4b5563;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 800px;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    color: #374151;
}

thead {
    background-color: #f1f5f9;
}

thead th {
    font-weight: 600;
    color: #1f2937;
}

tbody tr:hover {
    background-color: #f9fafb;
}

a {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-editar {
    background-color: #10b981;
    color: white;
}

.btn-editar:hover {
    background-color: #059669;
}

.btn-eliminar-multiple {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-eliminar-multiple:hover {
    background-color: #dc2626;
}

.boton-eliminar-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .libros-registrados {
        padding: 15px;
    }

    table {
        min-width: unset;
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }

    .botones-container {
        flex-direction: column;
        align-items: center;
    }
}

.paginacion {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
    flex-wrap: wrap;
}

.paginacion a {
    text-decoration: none;
    padding: 8px 12px;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.paginacion a:hover {
    background-color: #d0d0d0;
}

.paginacion a.pagina-actual {
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    border-color: #007BFF;
}

.filtro-container {
    margin-bottom: 20px;
    background-color: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.filtro-container label {
    font-weight: 500;
    color: #374151;
}

.filtro-container select,
.filtro-container input[type="text"] {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    min-width: 180px;
}

.filtro-container button {
    padding: 10px 18px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filtro-container button:hover {
    background-color: #1d4ed8;
}

.cuadro-contenedor {
    overflow-x: auto;
}