/* Importar Google Font */
@import url('https://www.google.com/search?q=https://fonts.googleapis.com/css2%3Ffamily%3DInter:wght%40400%3B500%3B700%26display%3Dswap');

.container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}

.title {
font-size: 2rem;
font-weight: 700;
color: #212529;
margin-bottom: 1.5rem;
text-align: center;
}

/* Acciones de cabecera y búsqueda */
.header-actions {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1.5rem;
}

.button-primary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background-color: #007bff;
color: #ffffff;
border-radius: 0.5rem;
text-decoration: none;
font-weight: 500;
transition: background-color 0.3s ease;
}

.button-primary:hover {
background-color: #007bff;
}

.search-form {
display: flex;
gap: 0.5rem;
}

.search-input {
padding: 0.5rem;
border: 1px solid #ced4da;
border-radius: 0.5rem;
transition: border-color 0.3s ease;
}

.search-input:focus {
outline: none;
border-color: #007bff;
}

.search-button {
padding: 0.5rem 1rem;
background-color: #6c757d;
color: #ffffff;
border: none;
border-radius: 0.5rem;
cursor: pointer;
transition: background-color 0.3s ease;
}

.search-button:hover {
background-color: #495057;
}

/* Estilos de la tabla */
.table-container {
overflow-x: auto;
border-radius: 0.5rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

table {
width: 100%;
border-collapse: collapse;
background-color: hsl(0deg 0% 100% / 60%);
}

th, td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid #e9ecef;
}

th {
background-color: #e9ecef;
font-weight: 700;
color: #343a40;
white-space: nowrap;
}

tr:hover {
background-color: #007bff;
color: #ffffff;
}

.options-col {
text-align: right;
width: 150px;
white-space: nowrap;
}

.action-link {
color: #6c757d;
margin-left: 0.75rem;
transition: color 0.3s ease;
}

.action-link:hover {
color: #65aefd;
}

.action-link.delete:hover {
color: #dc3545;
}

/* Paginación */
.pagination {
text-align: center;
margin-top: 1.5rem;
}

.pagination-link,
.current-page {
padding: 0.5rem 1rem;
margin: 0 0.25rem;
border-radius: 0.5rem;
text-decoration: none;
color: #007bff;
background-color: #e9ecef;
transition: background-color 0.3s ease;
}

.pagination-link:hover {
background-color: #dee2e6;
}

.current-page {
font-weight: 700;
color: #ffffff;
background-color: #007bff;
cursor: default;
}