/* Estilos para la tabla y contenedor */
.table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    padding: 1rem;
}

.table {
    width: 100%;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

/* Estilos para el encabezado de la tabla */
.table thead th {
    background: #f8f9fa;
    color: #344767;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Estilos para las celdas del cuerpo */
.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Estilos para los botones de acción */
.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-action i {
    font-size: 14px;
}

/* Estilos mejorados para la paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.pagination {
    left: 30px;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-item .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: #344767;
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: #f8f9fa;
    color: #5e72e4;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(94, 114, 228, 0.2);
}

.pagination .page-item.active .page-link {
    background-color: #5e72e4;
    border-color: #5e72e4;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 5px rgba(94, 114, 228, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Iconos de navegación */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 1.1rem;
}

/* Estilos responsivos */
@media (max-width: 576px) {
    .pagination .page-item .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .pagination {
        gap: 0.15rem;
    }
}

/* Estilos para los badges y estados */
.badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.badge-primary {
    background: rgba(94, 114, 228, 0.1);
    color: #5e72e4;
}

.badge-secondary {
    background: rgba(130, 134, 139, 0.1);
    color: #82868b;
}

/* Indicador de no leído */
.unread-indicator {
    width: 8px;
    height: 8px;
    background: #5e72e4;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* Estilos para el contenedor de búsqueda y filtros */
.filters-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #5e72e4;
    box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.2);
}

/* Estilos para el switch de "no leídos" */
.form-switch {
    padding-left: 2.5rem;
}

.form-switch .form-check-input {
    width: 2rem;
    height: 1rem;
    background-color: #e9ecef;
    border-color: #e9ecef;
}

.form-switch .form-check-input:checked {
    background-color: #5e72e4;
    border-color: #5e72e4;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .table-container {
        margin: 10px 0;
        padding: 0.5rem;
        border-radius: 4px;
    }

    .table thead th,
    .table tbody td {
        padding: 8px;
        font-size: 0.8rem;
    }

    .btn-action {
        width: 28px;
        height: 28px;
    }

    .filters-container {
        padding: 0.5rem;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}