/* Reset y estilos básicos */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

/* Título de la página */
.container h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

/* Estilo para la barra de búsqueda */
#searchInput {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    font-size: 16px;
    box-sizing: border-box;
}

/* Contenedor de la tabla */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Estilos de la tabla */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #007bff;
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .05);
}

.table tr:hover {
    background-color: #f1f1f1;
}

/* Estilos para enlaces */
.table td a {
    color: #007bff;
    text-decoration: none;
}

.table td a:hover {
    text-decoration: underline;
}

/* Estilos para mensajes sin registros */
.no-records {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Estilos para el botón "Volver al Inicio" */
.btn-return-home {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1000;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-return-home:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Responsividad para dispositivos móviles */
@media screen and (max-width: 768px) {
    .btn-return-home {
        top: auto;
        bottom: 10px;
        right: 10px;
        position: fixed;
    }

    .container {
        margin-top: 70px;
    }
}
